Currency: Difference between revisions

Content added Content deleted
imported>GoulashAmateur
m (Common Lisp syntax tweaks)
(BBC BASIC entry.)
Line 319: Line 319:
total 23683000000000006.16
total 23683000000000006.16
</pre>
</pre>
=={{header|BBC BASIC}}==
{{works with|BBC BASIC for Windows}}
<syntaxhighlight lang="bbcbasic"> REM No need for BigNum library.
REM This language uses 80bit (10 bytes!) for real values internally.
Price = 4E15 * 5.50 + 2.0 * 2.86
Tax = Price * .0765
Total = Price + Tax

REM Number printing will use 2 decimal places and 21 positions zone
@%=&020215
PRINT "Price = $" Price
PRINT "Tax = $" Tax
PRINT "Total = $" Total</syntaxhighlight>
{{out}}
<pre>Price = $ 22000000000000005.72
Tax = $ 1683000000000000.44
Total = $ 23683000000000006.16</pre>


=={{header|Bracmat}}==
=={{header|Bracmat}}==