Skip to content
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

Tests for underflow & overflow for ceiling & floor operators #30

Open
EvanMachusakNCQA opened this issue Jun 30, 2024 · 0 comments
Open

Comments

@EvanMachusakNCQA
Copy link
Contributor

EvanMachusakNCQA commented Jun 30, 2024

The decimal type has a much larger and smaller range than integer and long. Ceiling and Floor both convert Decimal to Integer, which results in loss of precision.

It's not stipulated in the spec that Ceiling(3147483647.05) should result in null, but that is probably the specified behavior.

We should write some tests asserting this behavior.

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

No branches or pull requests

1 participant