Subject: Re: Ruby math parenthesis wierdness
From: Gregg Kang <kangaroosterus gmail.com>
Date: Mon, 26 May 2008 04:39:45 +0900
References: 302865
I'm getting this type of issue too. It looks like any number you put
after the first paren '(' is ignored.
All these examples produce -20
m = 10*(123
-2)
puts m
----
m = 10*(10000000
-2)
puts m
---
m = 10*(-10000000
-2)
puts m