lua-users home
lua-l archive

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



Sorry for my mistake,
But I find out this :

> =1.#INF
stdin:1: '<eof>' expected near '#'

:)

On Thu, Jan 22, 2009 at 21:53, Andy Armstrong <andy@hexten.net> wrote:
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






--
Regards,
Linker Lin
linker.m.lin@gmail.com