-
Notifications
You must be signed in to change notification settings - Fork 389
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
infinitesimal non-zero float values are rejected by the preprocessor #1150
Milestone
Comments
thehowl
added
🐞 bug
Something isn't working
📦 🤖 gnovm
Issues or PRs gnovm related
labels
Sep 18, 2023
7 tasks
thehowl
added a commit
that referenced
this issue
Oct 21, 2023
#1185) Added a unit test and an integration test trying to reproduce #1150 Avoid unhandled errors. - [x] Added new tests, or not needed, or not feasible - [x] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [x] Added references to related issues and PRs - [x] Provided any useful hints for running manual tests - [x] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md). --------- Signed-off-by: Antonio Navarro Perez <[email protected]> Co-authored-by: Morgan Bazalgette <[email protected]>
thehowl
added a commit
to thehowl/gno
that referenced
this issue
Oct 21, 2023
gnolang#1185) Added a unit test and an integration test trying to reproduce gnolang#1150 Avoid unhandled errors. - [x] Added new tests, or not needed, or not feasible - [x] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [x] Added references to related issues and PRs - [x] Provided any useful hints for running manual tests - [x] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md). --------- Signed-off-by: Antonio Navarro Perez <[email protected]> Co-authored-by: Morgan Bazalgette <[email protected]>
gfanton
pushed a commit
to gfanton/gno
that referenced
this issue
Nov 9, 2023
gnolang#1185) Added a unit test and an integration test trying to reproduce gnolang#1150 Avoid unhandled errors. - [x] Added new tests, or not needed, or not feasible - [x] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [x] Added references to related issues and PRs - [x] Provided any useful hints for running manual tests - [x] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md). --------- Signed-off-by: Antonio Navarro Perez <[email protected]> Co-authored-by: Morgan Bazalgette <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this comes from porting package
math
. Reproducible example:In one of the tests, the following expression appears:
SmallestNonzeroFloat64
is what it says it is (precisely:0x1p-1022 * 0x1p-52
). Of course, being already the smallest, dividing it by 2 should yield0
. However, at preprocessing stage, the Gnovm rejects it entirely:The text was updated successfully, but these errors were encountered: