> 
> I'm just starting to learn smalltalk (thanks to PbE), but I'm pretty
> sure I know why this happens :-)

Excellent! I like that our energy helps people.

> Smalltalk has no knowledge of mathematics order, just operation order.
> In this case + and / are both binary operators so the operations are
> evaluated with the usual order, from left to right:
> 
> (6 + 4) / 2
> 
> The answer 5 is correct.
> 
> Regards
> 
> Pietro
> 


Reply via email to