Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const floatToPercent = (value) => {
- if (isNaN(value)) return value
- return `${Number(value * 100).toFixed(2)}%`
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement