busybox/shell/hush_test/hush-arith/arith-bignum1.right
Denys Vlasenko c1c267fd36 shell/math: bash-compatible handling of too large numbers
function                                             old     new   delta
parse_with_base                                        -     170    +170
evaluate_string                                     1477    1309    -168
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 170/-168)            Total: 2 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2023-06-25 17:42:05 +02:00

13 lines
366 B
Text

18 digits: 999999999999999999
19 digits: -8446744073709551617
20 digits: 7766279631452241919
18 digits- -999999999999999999
19 digits- 8446744073709551617
20 digits- -7766279631452241919
Hex base#:
16 digits: 9876543210abcedf
17 digits: 876543210abcedfc
18 digits: 76543210abcedfcc
16 digits: 6789abcdef543121
17 digits: 789abcdef5431204
18 digits: 89abcdef54312034