lua-users home
lua-l archive

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


> The problem seems to be with using literal numbers.  If I do:
> 
> i = 1
> 
> and then log what I is, I get:
> 
> = 5.2998088236266e-315

How do you log what you get?

It seems to me to be an endianness problem. On big endian machines, you get
1 =			3FF0000000000000
5.2998088236266e-315 =	000000003FF00000
(both 8-byte doubles)

Are you using luac on the PC and then transfering the result to the ARM?