Roberto Ierusalimschy
|
6fb0b11350
|
string contatenation handles conversion of integers to strings +
floats always format as floats (with decimal dot or exponent)
|
12 years ago |
Roberto Ierusalimschy
|
932e7fb0e1
|
'lua_tounsigned' takes number modulo 2^numbits as a result when
number is a float
(That may change...)
|
12 years ago |
Roberto Ierusalimschy
|
188192ce9a
|
'luai_hashnum' "inlined" into 'hashfloat'
|
12 years ago |
Roberto Ierusalimschy
|
fc083f1138
|
removed all tricks for conversions + 'luai_hashnum' moved to ltable.c
|
12 years ago |
Roberto Ierusalimschy
|
ee865b9fe7
|
new implementation for 'lua_strx2number' to correct small
problems with numbers like 0x10000...000p-100
|
12 years ago |
Roberto Ierusalimschy
|
d630daca1a
|
"legal" way to convert a float to an integer in C
|
12 years ago |
Roberto Ierusalimschy
|
8c883cb4e8
|
'objlen' can return integers
|
12 years ago |
Roberto Ierusalimschy
|
c75cca0559
|
detail (case '%d' of 'luaO_pushvfstring' should use integers)
|
12 years ago |
Roberto Ierusalimschy
|
1414b7123c
|
support for the case when 'l_mathop' does not conform to lua_Number
(problem with pointers to lua_Number solved by a typedef selected
automatically by 'l_mathop')
|
12 years ago |
Roberto Ierusalimschy
|
3563b3f519
|
first version of control for number sizes (still in 'local' section)
|
12 years ago |
Roberto Ierusalimschy
|
d46ed54646
|
no more IEEE tricks
|
12 years ago |
Roberto Ierusalimschy
|
e2c8c756ee
|
removed 'IEEE tricks' (should not be needed in Lua with integers)
|
12 years ago |
Roberto Ierusalimschy
|
5ca5086c19
|
'tonumber' now works with integers too
|
12 years ago |
Roberto Ierusalimschy
|
2d6a0ae149
|
added patch to last bug
|
12 years ago |
Roberto Ierusalimschy
|
b5ec26101f
|
new API function 'lua_cvtonum' to convert a value (number or string)
to a number, following the rules of the language to create integers
or floats
|
12 years ago |
Roberto Ierusalimschy
|
36e8771076
|
'luaO_str2int' more generic: accepts white spaces around the numeral
and handles signal
|
12 years ago |
Roberto Ierusalimschy
|
27f09415e3
|
new read format "*i" for reading integers
|
12 years ago |
Roberto Ierusalimschy
|
4ad9970649
|
uses integers for time
|
12 years ago |
Roberto Ierusalimschy
|
bef345a4b8
|
bug: Wrong error message in some short-cut expressions
|
12 years ago |
Roberto Ierusalimschy
|
0ce3018109
|
'pushnum' pushes a "number" (float) + new C instruction 'pushint'
|
12 years ago |
Roberto Ierusalimschy
|
0233ce0815
|
new function 'math.numbits' (not a final decision)
|
12 years ago |
Roberto Ierusalimschy
|
1f2b82bf25
|
correct way to avoid compile-time errors in integer divisions
|
12 years ago |
Roberto Ierusalimschy
|
f2043b7a58
|
correct error message for conversion errors from float to int
|
12 years ago |
Roberto Ierusalimschy
|
2b1c2c61b0
|
bug: Wrong assert when reporting concatenation errors.
|
12 years ago |
Roberto Ierusalimschy
|
fa6ea831b3
|
macro 'nvalue' removed (direct conversion from integer to double,
without an intermediate variable, can cause "excessive precision"
|
12 years ago |
Roberto Ierusalimschy
|
b22a4280c6
|
macro 'nvalue' removed + cast to void added to avoid warnings
with 'clang'
|
12 years ago |
Roberto Ierusalimschy
|
29fe3abda2
|
new function 'math.isfloat'
|
12 years ago |
Roberto Ierusalimschy
|
6347004be9
|
stack overflow in vararg functions + garbage collector in recursive loops
|
12 years ago |
Roberto Ierusalimschy
|
67532d5a10
|
constant folding and API arithmetic with integers
|
12 years ago |
Roberto Ierusalimschy
|
6920a7f2e3
|
new macro 'intop' (to perform integer arithmetic on unsigned types)
|
12 years ago |
Roberto Ierusalimschy
|
88bf2f83c0
|
new function 'tointeger' + 'luaV_arith' replaced by 'luaT_trybinTM'
|
12 years ago |
Roberto Ierusalimschy
|
8fff05f6d0
|
integer division operates only on integers
|
12 years ago |
Roberto Ierusalimschy
|
9b9becf384
|
added 'const' to parameters of 'luaG_concaterror'
|
12 years ago |
Roberto Ierusalimschy
|
00744a2729
|
'luaO_arith' -> 'luaO_numarith'
|
12 years ago |
Roberto Ierusalimschy
|
b4be507578
|
new function 'luaT_trybinTM'
|
12 years ago |
Roberto Ierusalimschy
|
360587f319
|
favoring 'tonumber' over 'nvalue'
|
12 years ago |
Roberto Ierusalimschy
|
eee51492e2
|
dumping and undumping integers
|
12 years ago |
Roberto Ierusalimschy
|
c37b7b3cca
|
bug: garbage collector can trigger too many times in recursive loops,
because it was not computing the size of CallInfo structures in threads
|
12 years ago |
Roberto Ierusalimschy
|
f79584faca
|
detail
|
12 years ago |
Roberto Ierusalimschy
|
4abe99dc34
|
new interface for 'tonumber'
|
12 years ago |
Roberto Ierusalimschy
|
d4e6b75098
|
"integer" keys in tables are now lua_Integer, not 'int'.
|
12 years ago |
Roberto Ierusalimschy
|
a2f5c28a80
|
new operation '//' (integer division)
|
12 years ago |
Roberto Ierusalimschy
|
a80a2b5e56
|
new cast macros for lua_Integer and lua_Unsigned
|
12 years ago |
Roberto Ierusalimschy
|
bb1851ce98
|
'for' loop uses integers when possible
|
12 years ago |
Roberto Ierusalimschy
|
5951c79ae1
|
default increment for 'for' loop is an integer (1, not 1.0)
|
12 years ago |
Roberto Ierusalimschy
|
e381c582de
|
integer handling for order comparisons, power, and modulo operations
|
12 years ago |
Roberto Ierusalimschy
|
9600c60df3
|
functions 'get_equalTM' and 'call_orderTM' moved to other files
to make 'lvm.c' smaller
|
12 years ago |
Roberto Ierusalimschy
|
32bf6c9b27
|
functions 'traceexec', 'callTM', and 'call_binTM' moved to other
files to make 'lvm.c' a little smaller
|
12 years ago |
Roberto Ierusalimschy
|
9c43d6a24e
|
new format "%I" in 'lua_pushfstring' for lua_Integer
|
12 years ago |
Roberto Ierusalimschy
|
01b6fe0cbf
|
new API function 'lua_isinteger'
|
12 years ago |