We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example: input: 0.666, output: 0.6
The text was updated successfully, but these errors were encountered:
You can use the roundingFunction property like this:
roundingFunction
const formatted = numbro(0.666).format({ mantissa: 1, roundingFunction: Math.floor, }); console.log(formatted); // "0.6"
Sorry, something went wrong.
You can use the roundingFunction property like this: const formatted = numbro(0.666).format({ mantissa: 1, roundingFunction: Math.floor, }); console.log(formatted); // "0.6"
Thanks for answering.It works for me
No branches or pull requests
Example:
input: 0.666, output: 0.6
The text was updated successfully, but these errors were encountered: