Skip to content

Number equality wrt. fraction digits #268

Description

@stasm

Should number eqality used in matching variants inside of SelectExpressions take into account the fraction digits of the number?

foo = {1.000 ->
    [1] ...
    [1.0] ...
    [1.00] ...
    [1.000] ...
   *[other] ...
}

If so, should it be possible (and how?) to express numbers together with their fraction digits when passing them as variables?

# What's the API for defining $num as 1.00?
foo = {$num ->
    [1] ...
    [1.0] ...
    [1.00] ...
    [1.000] ...
   *[other] ...
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions