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

Exclude infinity as a floating-point constant #345

Open
bocchino opened this issue Oct 30, 2023 · 1 comment
Open

Exclude infinity as a floating-point constant #345

bocchino opened this issue Oct 30, 2023 · 1 comment
Labels
semantics Issues related to semantics spec Issues related to the FPP language specification

Comments

@bocchino
Copy link
Collaborator

fpp-check currently accepts this code:

constant a = 1e10000

It should emit an error, because 1e10000 is not a finite F64 value.

@bocchino bocchino added semantics Issues related to semantics spec Issues related to the FPP language specification labels Oct 30, 2023
@bocchino bocchino added this to To do in Fixes and Enhancements via automation Oct 30, 2023
@bocchino
Copy link
Collaborator Author

This issue is related to #102, because a finite F64 value may become infinity when converted to F32.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semantics Issues related to semantics spec Issues related to the FPP language specification
Projects
Development

No branches or pull requests

1 participant