Skip to content

subtraction of exact CQL Quantities #355

@randolphbarrows

Description

@randolphbarrows

Using cql-execution v3.3.0 from 8/2025, subtraction of exact CQL Quantities 1.4 'mg/dL' - 0.3 'mg/dL' evaluated to 1.0999999999999999 'mg/dL', causing a subsequent comparison with 1.1 'mg/dL' to fail. Notably, this works as expected in the CQF CQL Extension.

Perhaps this is related to Issue 280 'Improve support for CQL Decimal' from 10/2022 (i.e. "Initial precision is not maintained in all cases")?

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