support for Real.isInfitite and isNan

This commit is contained in:
sergeych committed 2026-03-31 19:08:11 +03:00
1 parent 850efedb72
commit a976702caf
4 files changed
+134

No files matched your search

+2
View File
@@ -19,6 +19,8 @@ you can use it's class to ensure type:
|-----------------|-------------------------------------------------------------|------|
| `.roundToInt()` | round to nearest int like round(x) | Int |
| `.toInt()` | convert integer part of real to `Int` dropping decimal part | Int |
| `.isInfinite()` | true when the value is `Infinity` or `-Infinity` | Bool |
| `.isNaN()` | true when the value is `NaN` | Bool |
| `.clamp(range)` | clamp value within range boundaries | Real |
| | | |
| | | |