lua-users home
lua-l archive

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


Hello.

I have some questions about the following macro used by lua_strx2number:

/* maximum number of significant digits to read (to avoid overflows
   even with single floats) */
#define MAXSIGDIG 30

What is the mathematical behind this? That is, why will there be overflow with more than exactly 30 hexadecimal digits? Also, is this the case for decimal number strings too or is it another amount?