Currency: Difference between revisions
no edit summary
m (→{{header|Ada}}: Fixed typo) |
No edit summary |
||
Line 1,189:
23683000000000006.16
</pre>
=={{header|Mathematica}} / {{header|Wolfram Language}}==
<lang Mathematica>total = 4000000000000000 Rationalize[5.50] + 2 Rationalize[2.86];
AccountingForm[N[total, 20], {\[Infinity], 2}]
tax = total Rationalize[0.0765];
AccountingForm[N[tax, 20], {\[Infinity], 2}]
AccountingForm[N[total + tax, 20], {\[Infinity], 2}]</lang>
{{out}}
<pre>22000000000000005.72
1683000000000000.44
23683000000000006.16</pre>
=={{header|Nim}}==
|