lua-users home
lua-l archive

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


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)

--
Andy Armstrong, Hexten