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
moment.duration(123.55, "hours").subtract(5, "days").asHours(); // 3.549999999999997 moment.duration(123.55, "hours").format("d[d] h[h]", 1) // "5d 3.6h" moment.duration(123.55, "hours").format("d[d] h[h]", 1, { forceFormatFallback: true }) // "5d 3.5h"
Resulting problem:
(3.549999999999997).toLocaleString("en", { minimumFractionDigits: 1, maximumFractionDigits: 1 }); // "3.6" (3.549999999999997).toFixed(1); // "3.5"
And the actual problem is because:
123.55 - 120; // 3.549999999999997
The text was updated successfully, but these errors were encountered:
toLocaleString
7bea3cf
No branches or pull requests
Resulting problem:
And the actual problem is because:
The text was updated successfully, but these errors were encountered: