+0  
 
0
491
4
avatar

What is X= 5\2

Guest Aug 18, 2015

Best Answer 

 #3
avatar+20008 
+5

5 is by definition a integer

2 is by definition a integer

 

so:  5 \ 2   means integer divided by integer is by definition a integer in programming.    = [2].5

see also floor-function from gauss.

 

example: 5. \ 2 means real number divided by integer is by definiton a real number in programming. = 2.5

 

heureka  Aug 19, 2015
 #1
avatar+20008 
+5

What is X= 5\2 = [5\2] = 2

heureka  Aug 19, 2015
 #2
avatar+93305 
0

Thanks Heureka,

Could you please tell me what this means?

Melody  Aug 19, 2015
 #3
avatar+20008 
+5
Best Answer

5 is by definition a integer

2 is by definition a integer

 

so:  5 \ 2   means integer divided by integer is by definition a integer in programming.    = [2].5

see also floor-function from gauss.

 

example: 5. \ 2 means real number divided by integer is by definiton a real number in programming. = 2.5

 

heureka  Aug 19, 2015
 #4
avatar+93305 
0

ok I get it, thanks Heureka :)

Melody  Aug 19, 2015

25 Online Users

avatar
avatar

New Privacy Policy

We use cookies to personalise content and advertisements and to analyse access to our website. Furthermore, our partners for online advertising receive information about your use of our website.
For more information: our cookie policy and privacy policy.