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
Looks like spaces at the end count as the fractional part, which ruins the result:
toNumber("070.070", 8) -> 56.109375 toNumber("070.070 ", 8) -> 56.013671875 toNumber("070.070 ", 8) -> 56.001708984375
toNumber("070.070", 8) -> 56.109375
toNumber("070.070 ", 8) -> 56.013671875
toNumber("070.070 ", 8) -> 56.001708984375
toNumber("0F0.0F0", 16) -> 240.05859375 toNumber("0F0.0F0 ", 16) -> 240.003662109375 toNumber("0F0.0F0 ", 16) -> 240.00022888183594
toNumber("0F0.0F0", 16) -> 240.05859375
toNumber("0F0.0F0 ", 16) -> 240.003662109375
toNumber("0F0.0F0 ", 16) -> 240.00022888183594
The text was updated successfully, but these errors were encountered:
JohnBrinkman
No branches or pull requests
Looks like spaces at the end count as the fractional part, which ruins the result:
toNumber("070.070", 8) -> 56.109375
toNumber("070.070 ", 8) -> 56.013671875
toNumber("070.070 ", 8) -> 56.001708984375
toNumber("0F0.0F0", 16) -> 240.05859375
toNumber("0F0.0F0 ", 16) -> 240.003662109375
toNumber("0F0.0F0 ", 16) -> 240.00022888183594
The text was updated successfully, but these errors were encountered: