coin-math
Simple functions to convert between the Floating-point and the "Satoshi" integer values (monetary amounts).
Usage
var coinMath = ; var amount = 123456789; var satoshi = coinMath; var amount2 = coinMath; console;
(Please examine the code to learn more about the function parameters.)
License
MIT