microsoft / microsoft/Power-Fx

Infinity, MaxValue, Epsilon, etc.

Open
#3,010 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
3.4k
Forks
358
Avg merge
10h 34m
Merged PRs (30d)
3

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by tracing how Power Fx parses numeric literals and exposes built-in functions, then determine the project’s supported numeric range and representation. Done means the proposed Infinity, Epsilon(), MaxValue(), and MinValue() behavior is implemented and covered by tests, with the NaN question resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.