reais
v0.0.4
Published
Format integers (representing centavos) to Brazilian Reais and vice-versa.
Downloads
6
Readme
Reais = require('reais')
Reais.fromInteger(3) == '0,03'
Reais.fromInteger(84628, 'R$ ') == 'R$ 846,28'
Reais.fromInteger(NaN, 'R$ ') == '-'
Reais.toInteger('R$ 44.028') == 4402800