2.4.19 • Published 1 year ago
@heathmont/money v2.4.19
Usage
npm install --save "@heathmont/money"
import { toInteger, fromInteger, convertUnit } from "@heathmont/money";
toInteger(amount, currency, unit)
toInteger(111111.222333443, 'BTC')
11111122233344
toInteger(111111222.333443, 'BTC', 'mBTC')
11111122233344
toInteger(111111.223332, 'EUR')
11111122333
toInteger(11111122.3332, 'EUR', 'cent')
11111122333
fromInteger(amount, currency, unit)
fromInteger(11111122233344, 'BTC')
111111.22233344
fromInteger(11111122233344, 'BTC', 'uBTC')
111111222333.44
fromInteger(11111122333, 'EUR')
111111.22333
fromInteger(11111122333, 'EUR', 'cent')
11111122.333
convertUnit(amount, currency, fromUnit, toUnit)
convertUnit(111111222.333443, 'BTC', 'mBTC', 'uBTC')
111111222333.44
convertUnit(111111.223332, 'EUR', 'EUR', 'cent')
11111122.333
2.4.19
1 year ago
2.4.18
1 year ago
2.4.17
2 years ago
2.4.16
2 years ago
2.4.15
3 years ago
2.4.14
3 years ago
2.4.13
4 years ago
2.4.12
4 years ago
2.4.11
5 years ago
2.4.9
5 years ago
2.4.8
5 years ago
2.4.6
5 years ago
2.4.5
5 years ago
2.4.4
5 years ago
2.4.3
5 years ago
2.4.2
5 years ago
2.4.1
5 years ago
2.4.0
6 years ago
2.3.1
6 years ago
2.2.0
6 years ago
2.1.2
6 years ago
2.1.1
6 years ago
2.1.0
6 years ago
2.0.4
6 years ago
2.0.3
6 years ago
2.0.2
6 years ago
2.0.1
6 years ago
2.0.0
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.1
6 years ago