Fix string to floating point conversion routine.
[INTERPRETER] * BUG: Fix string to floating point conversion routine.
This commit is contained in:
parent
b7a9af45c6
commit
b4a8adf222
1 changed files with 18 additions and 5 deletions
|
@ -52,11 +52,24 @@
|
|||
#define IS_PURE_INTEGER(_int64_val) ((_int64_val) == ((int)(_int64_val)))
|
||||
|
||||
static uint64_t _pow_10[18] = {
|
||||
10, 100, 1000, 10000,
|
||||
1000000, 10000000, 100000000, 1000000000,
|
||||
10000000000, 10000000000, 100000000000, 1000000000000,
|
||||
10000000000000, 100000000000000, 10000000000000000, 100000000000000000,
|
||||
1000000000000000000, 10000000000000000000U
|
||||
10,
|
||||
100,
|
||||
1000,
|
||||
10000,
|
||||
100000,
|
||||
1000000,
|
||||
10000000,
|
||||
100000000,
|
||||
1000000000,
|
||||
10000000000,
|
||||
100000000000,
|
||||
1000000000000,
|
||||
10000000000000,
|
||||
100000000000000,
|
||||
1000000000000000,
|
||||
10000000000000000,
|
||||
100000000000000000,
|
||||
1000000000000000000
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue