Is there a Money class for JavaScript? [closed] Is there a Money class for JavaScript? [closed] javascript javascript

Is there a Money class for JavaScript? [closed]


Both bigdecimal.js and node-bigint have arbitrary precision.

I'd go with bigint. bigdecimal is a GWT version of of Java's BigDecimal, clocking in at 113kb, so the code is not what one would call readable.

update: money.js has just been released, but it uses javascript's native Number, and is focused on currency conversion.


There is a GREAT $.money class the does almost everything you could ever want from money in the ku4js-kernel library. You can find the documentation here. Have fun! :{)}


Was looking for something to handle money in node.js and came across this question, and then found esmoney which is a straightforward money calculator. https://www.npmjs.com/package/es-money