-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
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
Rounding using .ceil only checks the first decimal #116
Comments
Can you try using "100.05" rather than 100.05? I suspect the difficulty is that |
You might be interested to know that 100.05 is one of those "wicked" values that leads to trouble. See the discussion in the decimal proposal repo. |
Can you try this again with |
This is reproducible when the input is a string: The output below round using "ceil" rounding mode current:
expected:
|
I have added more tests for In the PR I have found the following unexpected cases for
|
I'm currently attempting to use the rounding methods from this library and I'm finding that the
ceil
function doesn't provide the desired outputExpected Behavior
Current Behavior
Context (Environment)
Using the latest version of Decimal128 17.0.0 on Deno 1.46.3
The text was updated successfully, but these errors were encountered: