Another
BP.org extension thread.
Here is Script BASIC 64 bit at
100 decimal place precision. Attached is a PDF with an article called,
How to Print Floating-Point Numbers Accurately.
I have a suspicion that the Script BASIC
FORMAT function needs work for 64 bit masks. I think it is only working for 32 bit numbers.
PRINT FORMAT("%.100f",0.1),"\n"
jrs@laptop:~/sb/sb22/test$ scriba richtest.sb
0.1000000000000000055511151231257827021181583404541015625000000000000000000000000000000000000000000000
jrs@laptop:~/sb/sb22/test$
What is there more precise than, say, a ...
PRINT FORMAT("%.54f",237488392002130455361/456392442844),"\n"
jrs@laptop:~/sb/sb22/test$ time scriba miketest.sb
-20209300.529560755938291549682617187500000000000000000000000000
real 0m0.003s
user 0m0.000s
sys 0m0.003s
jrs@laptop:~/sb/sb22/test$