Skip to content

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

@qacwnfq

Description

@qacwnfq

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions