Last active
May 23, 2018 01:05
-
-
Save vmussak/8bf7067fc9b91a46d554efe7591cb0a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const numero = require('numero-por-extenso'); | |
const monetario = 5234.5; | |
const porcentagem = 45; | |
//monetário | |
console.log(numero.porExtenso(monetario, numero.estilo.monetario)); | |
//porcentagem | |
console.log(numero.porExtenso(porcentagem, numero.estilo.porcentagem)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment