lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: [ANN] Lua 5.2.0 (rc8) now available
From
: Gé Weijers <ge@
...
>
Date
: Thu, 15 Dec 2011 16:11:55 -0800
On Thu, Dec 15, 2011 at 3:56 PM, Daurnimator
<
quae@daurnimator.com
>
wrote:
The strange one for me is 0x1p1
... what is p?
These are binary/hex floating point literals, which are part of newer versions of C, as well as Lua 5.2.0.
> =0x1.8p1
3
> =string.format("%a", 77.5)
0x1.36p+6
To be read as (1 + 3/16 + 6/256) * 2^6
Gé
--
Gé
References
:
[ANN] Lua 5.2.0 (rc8) now available
,
Luiz Henrique de Figueiredo
Re: [ANN] Lua 5.2.0 (rc8) now available
,
Tymur Gubayev
Re: [ANN] Lua 5.2.0 (rc8) now available
,
Daurnimator
Prev by Date:
Re: Lua binding: How to implement C enum
Next by Date:
Re: Lua binding: How to implement C enum
Previous by thread:
Re: [ANN] Lua 5.2.0 (rc8) now available
Next by thread:
Re: [ANN] Lua 5.2.0 (rc8) now available
Index(es):
Date
Thread