1.0.0 • Published 9 years ago
currency-object v1.0.0
Currency-Value
Javascript Currency class
- Big number calculations for high precious float calculations
- Node or browers support
- Currency code attribute
Why?
Only currency value object with big number support
Installing currency-value
npm install --save currency-object
Using
let currency = new Currency('1', 'EUR');
currency = currency.add(new Currency('5', 'EUR'));
currency.amount() === 6;
(new Currency('10', 'EUR')).converTo('2', 'USD').toString() === '20'
1.0.0
9 years ago