[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Minor issues in Lua Ref Manual
- From: Tim Hill <drtimhill@...>
- Date: Wed, 7 Sep 2022 11:17:49 -0700
In the Ref Manual (5.4 but also earlier) section 3.1 (Lexical Conventions), the manual states "Hexadecimal constants also accept an optional fractional part plus an optional binary exponent, marked by a letter 'p' or 'P’.”.
However, it doesnt state the base of the exponent value itself. I’m assuming “binary” means that the exponent shifts the mantissa by the specified number of bits, but how the exponent number itself encoded? Decimal (base 10), Hex (base 16). (The examples only show decimal values, but these might be hex.)
Might help clarify if the manual makes it clear when the base on the exponent is?