diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-12 21:41:40 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-12 21:41:40 +0100 |
commit | 9a23b07c4c0d06c40d7c0ce91c5fdf7c8449ac49 (patch) | |
tree | 9b1a85084b1e046b0a5b5eb06375334ef1eb2f56 /testsuite/bc_vars.bc | |
parent | d6ad3666dc51f475a6e76b07f2c59d039f69f2d4 (diff) | |
download | busybox-9a23b07c4c0d06c40d7c0ce91c5fdf7c8449ac49.tar.gz |
testsuite: add bc and dc tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/bc_vars.bc')
-rw-r--r-- | testsuite/bc_vars.bc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/bc_vars.bc b/testsuite/bc_vars.bc new file mode 100644 index 000000000..91e3572c2 --- /dev/null +++ b/testsuite/bc_vars.bc @@ -0,0 +1,7 @@ +scale=10;123981239.981273987 * 12983791827398.29836472638 +scale=100;759634576394.3946587934658364895 / 9834759834895386.36459364958346 +34895734986539489834759837489573498573.398475984759837485734987598345 + 9823749832749872384234872934.28347982374987239847982374 +a=123123123.987239874; b=123123123.239479823748; a+b +20347023.23498723984 - 28934723874.234720384 +scale=100;a=739534985.895347284957;b=238746782364.2374623784; c = a / b; c +s7298367203972395108367910823465293084561329084561390845613409516734503870691837451 + 785621394067928346918023476190834672198467134908618723249671349062187346898241093486139046139084613490817356023871869102746182749061872609129847 |