blob: 09855460c2b1d0975d4f63fa4b010e36abce320d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
/**
* @name simpleFormat
* @param {number|string} value Value to format
* @returns {number} A number in fixed-point notation up to 2 decimal points
*/
module.exports = value => {
const result = parseFloat(parseFloat(value).toFixed(2));
return result;
};
|