microsoft / microsoft/Power-Fx
Infinity, MaxValue, Epsilon, etc.
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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