Skip to content

Conversation

ShayanEmzed
Copy link

Fixes #407

I created a function named precise. Just pass the number and significant to get your desired output.

Example:
let num = 0.000012203000
console.log(precise(num, 2))

output: 0.000012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support options for significant number
1 participant