Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
4
Task/Safe-addition/J/safe-addition.j
Normal file
4
Task/Safe-addition/J/safe-addition.j
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
err =. 2^ 53-~ 2 <.@^. | NB. get the size of one-half unit in the last place
|
||||
safeadd =. + (-,+) +&err
|
||||
0j15": 1.14 safeadd 2000.0 NB. print with 15 digits after the decimal
|
||||
2001.139999999999873 2001.140000000000327
|
||||
Loading…
Add table
Add a link
Reference in a new issue