lua-users home
lua-l archive

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




On 16 December 2011 10:50, Tymur Gubayev <tymur.gubayev@gmail.com> wrote:
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


Why are they strange????
0x1E1 == 481 and 0x1E == 30

The strange one for me is 0x1p1
... what is p?