Comment by Jach
11 years ago
Not OP, but I used Google's Long.js (among other things) in a project[0] to get around the limitation of not being able to do as in Python:
import fractions
print str(fractions.Fraction.from_float(0.3333).limit_denominator(10))
Almost anything that compiles to JS would be better than by-hand JS; I'd love to use ClojureScript with re-frame at work...
[0] http://www.thejach.com/pseudo-public/webgl_coursera/assignme...
No comments yet
Contribute on Hacker News ↗