Martin DeMello
8/19/2008 8:16:00 PM
On Tue, Aug 19, 2008 at 12:36 PM, Limo Driver <melezov@gmail.com> wrote:>
> Why is this being evaluated as 5**(6**7), when for instance 9/9/9 is
> being evaluated normally (9/9)/9=0, instead of 9/(9/9)=9?
Ruby follows the actual mathematical usage, where a^b^c (imagine it
written in tower form) is a^(b^c). I guess this is because (a^b)^c =
a^(bc), so a^(b^c) was the case that needed the compact notation
martin