4 ms·
See if there is a fixed precision arithmetic library for JS? (similar to BigDecimal in Java / Groovy) Homework: 1) Google for such; 2) see which one doesn't
by Roboprog 11y ago
See if there is a fixed precision arithmetic library for JS? (similar to BigDecimal in Java / Groovy)
Homework: 1) Google for such; 2) see which one doesn't suck.
- vorg 11y agoGroovy is a heavily marketed programming language that uses BigDecimal, just like its sister dynamic languages Clojure, Rhino/Nashorn, and Xtend also do. Only Java actually ships BigDecimal.
- Roboprog 11y agoYeah, I get that the base JRE is what actually provides the BigDecimal class in this case -- the other languages just use it. (as the default "decimal"-numeric type in the case of Groovy, rather than [Dd]ouble)