mirror of
https://github.com/bellard/quickjs.git
synced 2025-09-30 15:04:24 +03:00
dtoa fix for minus zero
This commit is contained in:
@@ -393,6 +393,7 @@ function test_number()
|
||||
assert((-1.125).toFixed(2), "-1.13");
|
||||
assert((0.5).toFixed(0), "1");
|
||||
assert((-0.5).toFixed(0), "-1");
|
||||
assert((-1e-10).toFixed(0), "-0");
|
||||
|
||||
assert((1.3).toString(7), "1.2046204620462046205");
|
||||
assert((1.3).toString(35), "1.ahhhhhhhhhm");
|
||||
|
Reference in New Issue
Block a user