Files: ecf6563965cf3a734a59dfba74cd29977efbe9d6 / src / domain / number.js
142 bytesRaw
1 | const isInteger = n => Number(n) === n && n % 1 === 0; |
2 | |
3 | module.exports.writeNumber = n => isInteger(n) ? n : Number.parseFloat(n).toFixed(2); |
4 |
Built with git-ssb-web