Re: [Pharo-project] Surprising binary messages!
Jan. 18, 2011
11:33 a.m.
On Jan 18, 2011, at 12:30 PM, Noury Bouraqadi wrote:
5 is the surprising answer of the expression: 6 + 4 / 2
It should be 8 But, I got 5 in both 1.1 and 1.2.
Why? 6 + 4 is 10 and devided by 2 is 5. (there is no operator precedence) Marcus -- Marcus Denker -- http://www.marcusdenker.de INRIA Lille -- Nord Europe. Team RMoD.
5673
Age (days ago)
5673
Last active (days ago)
0 comments
1 participants
participants (1)
-
Marcus Denker