Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
22
Task/Currency/Bracmat/currency.bracmat
Normal file
22
Task/Currency/Bracmat/currency.bracmat
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
div$((4000000000000000*550+2*286)+1/2,1):?before-tax
|
||||
& div$(!before-tax*765/10000+1/2,1):?tax
|
||||
& !before-tax+!tax:?after-tax
|
||||
& ( fix
|
||||
= cents dollars
|
||||
. mod$(!arg.100):?cents
|
||||
& ( !cents:<10&0 !cents:?cents
|
||||
|
|
||||
)
|
||||
& div$(!arg.100):?dollars
|
||||
& str$(!dollars "." !cents)
|
||||
)
|
||||
& str
|
||||
$ ( "before-tax "
|
||||
fix$!before-tax
|
||||
"\ntax "
|
||||
fix$!tax
|
||||
\n
|
||||
"after-tax "
|
||||
fix$!after-tax
|
||||
\n
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue