Prettify
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
const formatPercent = (n, fixed = 1) =>
|
||||
String((n.toPrecision(2) * 100).toFixed(fixed))
|
||||
const formatPercent = (n, fixed = 1) => String((n.toPrecision(2) * 100).toFixed(fixed))
|
||||
|
||||
export default formatPercent
|
||||
|
Reference in New Issue
Block a user