lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Andy Armstrong <andy@hexten.net> writes:

> On 22 Jan 2009, at 13:44, Linker wrote:
>> Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
>> > =0/1
>> 0
>>
>> Why?
>
>
> Wow! Perl has the *exact* same bug:
>
> $ perl -le 'print 0/1'
> 0
>
> :)
>
> (0 divided by anything /is/ 0)

Uh no.  0 divided by any non-zero definite number is 0.

-- 
David Kastrup