+0

# Programming question...

0
328
4

What is X= 5\2

Guest Aug 18, 2015

#3
+18827
+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

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

heureka  Aug 19, 2015
Sort:

#1
+18827
+5

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

heureka  Aug 19, 2015
#2
+91437
0

Thanks Heureka,

Could you please tell me what this means?

Melody  Aug 19, 2015
#3
+18827
+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

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

heureka  Aug 19, 2015
#4
+91437
0

ok I get it, thanks Heureka :)

Melody  Aug 19, 2015

### 27 Online Users

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