math-lib-sb
v1.0.8
Published
format numbers with dot, comma and decimals
Downloads
2
Readme
math-lib-sb
math-lib-sb is a javascript library for formating numbers.
Installation
Use the package manager to install math-lib-sb.
npm install math-lib-sb
Usage
const mathLibSb = require('math-lib-sb');
# returns '10.2'
mathLibSb.getFloatNumberWithDot('10,2')
# returns '10,2'
mathLibSb.getFloatNumberWithComma('10.2')
# returns '10.26'
mathLibSb.truncateNumberWithoutRounding('10.263')
# returns '10.263'
mathLibSb.truncateNumberWithoutRounding('10.2634', 3)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.