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

Expr.isLiteral() fails to recognize negative numbers #34

Open
qacwnfq opened this issue Aug 6, 2024 · 0 comments
Open

Expr.isLiteral() fails to recognize negative numbers #34

qacwnfq opened this issue Aug 6, 2024 · 0 comments

Comments

@qacwnfq
Copy link

qacwnfq commented Aug 6, 2024

Bug: isLiteral() returns false for expressions starting with a minus, even if they are actually numbers and thus literals.

Expected Behavior: isLiteral() returns true for negative doubles.

Simplest way to reproduce:
Add flux measurement of a flux and try to forward simulate when that flux is negative.

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