From eb050f9e2abc7432b17059f900c70bf7ce5575c9 Mon Sep 17 00:00:00 2001
From: Mike Pall
Date: Wed, 19 Aug 2015 02:10:36 +0200
Subject: Parse binary number literals (0bxxx).
---
doc/ext_ffi_api.html | 4 ++--
doc/extensions.html | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
(limited to 'doc')
diff --git a/doc/ext_ffi_api.html b/doc/ext_ffi_api.html
index 8cf48dc3..b095c05f 100644
--- a/doc/ext_ffi_api.html
+++ b/doc/ext_ffi_api.html
@@ -546,8 +546,8 @@ corresponding ctype.
The parser for Lua source code treats numeric literals with the
suffixes LL or ULL as signed or unsigned 64 bit
integers. Case doesn't matter, but uppercase is recommended for
-readability. It handles both decimal (42LL) and hexadecimal
-(0x2aLL) literals.
+readability. It handles decimal (42LL), hexadecimal
+(0x2aLL) and binary (0b101010LL) literals.
The imaginary part of complex numbers can be specified by suffixing
diff --git a/doc/extensions.html b/doc/extensions.html
index d2f8d7ba..3122051d 100644
--- a/doc/extensions.html
+++ b/doc/extensions.html
@@ -183,7 +183,7 @@ in "-inf".
tonumber() etc. use builtin string to number conversion
All string-to-number conversions consistently convert integer and
-floating-point inputs in decimal and hexadecimal on all platforms.
+floating-point inputs in decimal, hexadecimal and binary on all platforms.
strtod() is not used anymore, which avoids numerous
problems with poor C library implementations. The builtin conversion
function provides full precision according to the IEEE-754 standard, it
--
cgit v1.2.3-55-g6feb