+0  
 
0
287
4
avatar

What is X= 5\2

Guest Aug 18, 2015

Best Answer 

 #3
avatar+18712 
+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
Sort: 

4+0 Answers

 #1
avatar+18712 
+5

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

heureka  Aug 19, 2015
 #2
avatar+91001 
0

Thanks Heureka,

Could you please tell me what this means?

Melody  Aug 19, 2015
 #3
avatar+18712 
+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+91001 
0

ok I get it, thanks Heureka :)

Melody  Aug 19, 2015

15 Online Users

avatar
We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.  See details