Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Beware of Fast-Math. Parent comment
Edit: Now it does it fine after inputting floats:
puts [ expr { 1.0/7.0 } ]
Eforth on top of Subleq, a very small and dumb virtual machine:
1 f 7 f f/ f. 0.143 ok
There are no comments on this comment yet.
Edit: Now it does it fine after inputting floats:
puts [ expr { 1.0/7.0 } ]
Eforth on top of Subleq, a very small and dumb virtual machine:
Still, using rationals where possible (and mod operations otherwise) gives a great 'precision', except for irrationals.