lua-users home
lua-l archive

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



Following bugs have been fixed in the lua514-lnum-20081022.patch found at:

	http://luaforge.net/frs/?group_id=214
	
If you are using LNUM, please update to using the latest patch.

- Asko


<<
Some 'tonumber()' cases in Roberto's 5.1 test suite (math.h) gave 'nil'.

    tonumber("+.01") == 0.01
    tonumber("-.01") == -0.01
    tonumber(".01") == 0.01
    tonumber("-1.") == -1
    tonumber("+1.") == 1

Now these work as expected.

MORE IMPORTANTLY, SCIENTIFIC NOTATION HAS NOT WORKED RIGHT; the exponent was not applied to the integer part!

    1000.00e-03 == 1    -- has given 1000 earlier!

Fixed now.
<<