Skip to content

Infinity, MaxValue, Epsilon, etc. #3010

Description

I'm surprised to find that Power Fx has no way to express these values. I'd propose adding the following.

Expression Description
Infinity Numeric literal for positive infinity
-Infinity Numeric literal for negative infinity
Epsilon() Returns the smallest positive value greater than zero
MaxValue() Returns the largest possible numeric value
MinValue() Returns the smallest possible numeric value

NaN is also worth considering, but I believe that's already handled as an error value.

Pi() already exists.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions