tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 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