Skip to main content
Module

x/rambda/source/toDecimal.js

Faster and smaller alternative to Ramda
Go to Latest
File
export function toDecimal(number, charsAfterDecimalPoint = 2) { return Number(parseFloat(String(number)).toFixed(charsAfterDecimalPoint))}