Improving precision of ecma_number_to_string in case number can be represented as UInt32.

This commit is contained in:
Ruben Ayrapetyan
2014-09-03 15:05:58 +04:00
parent b275218e63
commit 76de0e9a06
2 changed files with 215 additions and 205 deletions
+3 -1
View File
@@ -31,7 +31,8 @@ main( int __unused argc,
{
(const ecma_char_t*) "1",
(const ecma_char_t*) "0.5",
(const ecma_char_t*) "12344.99931",
(const ecma_char_t*) "12345",
(const ecma_char_t*) "12345.12209",
(const ecma_char_t*) "1.401298403e-45",
(const ecma_char_t*) "-2.5e+38",
(const ecma_char_t*) "NaN",
@@ -46,6 +47,7 @@ main( int __unused argc,
1.0f,
0.5f,
12345.0f,
12345.123f,
1.0e-45f,
-2.5e+38f,
NAN,