git ssb

0+

Rômulo Alves / money-block



Tree: ecf6563965cf3a734a59dfba74cd29977efbe9d6

Files: ecf6563965cf3a734a59dfba74cd29977efbe9d6 / src / domain / number.js

142 bytesRaw
1const isInteger = n => Number(n) === n && n % 1 === 0;
2
3module.exports.writeNumber = n => isInteger(n) ? n : Number.parseFloat(n).toFixed(2);
4

Built with git-ssb-web