lua-users home
lua-l archive

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


I made a mistake typing in some numbers in Lua interactive mode, and
got some strange results, like these:

Lua 5.2.0  Copyright (C) 1994-2011 Lua.org, PUC-Rio
> =1e1
10
> =1p1
stdin:1: malformed number near '1p1'
> =0x1p1
2
> =0x1e1
481
> =0x1e
30
> =0x1p
stdin:1: malformed number near '0x1p'


the values for 0x1e1 and 0x1e are stange.

Tymur