Data update
This commit is contained in:
parent
35bcdeebf8
commit
74c69a0df6
2427 changed files with 31826 additions and 3468 deletions
11
Task/Currency/BBC-BASIC/currency.basic
Normal file
11
Task/Currency/BBC-BASIC/currency.basic
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
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
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import "/big" for BigRat
|
||||
import "./big" for BigRat
|
||||
|
||||
var hamburgers = BigRat.new("4000000000000000")
|
||||
var milkshakes = BigRat.two
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue