Safe addition: Difference between revisions

Content added Content deleted
Line 297: Line 297:
0j15": 1.14 safeadd 2000.0 NB. print with 15 digits after the decimal
0j15": 1.14 safeadd 2000.0 NB. print with 15 digits after the decimal
2001.139999999999873 2001.140000000000327</lang>
2001.139999999999873 2001.140000000000327</lang>

=={{header|Mathematica}}==
When you use //N to get a numerical result, Mathematica does what a standard calculator would do: it gives you a result to a fixed number of significant figures. You can also tell Mathematica exactly how many significant figures to keep in a particular calculation. This allows you to get numerical results in Mathematica to any degree of precision.


=={{header|PicoLisp}}==
=={{header|PicoLisp}}==