/** * @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: string) => { const result = parseFloat(parseFloat(value).toFixed(2)); return result; };