class constants added and class instances for integral types

This commit is contained in:
sergeych committed 2025-05-28 14:36:04 +04:00
1 parent f885300d18
commit 47c061d2b4
7 files changed
+98 -16

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
# Real built-in class
Class that supports double-precision math. Woks much like double in other languages. We honor no floats, so it is '
Real'.
It's class in Ling is `Real`:
(π/2)::class
>>> Real
you can use it's class to ensure type:
1.71::class == Real
>>> true
## Member functions
| name | meaning | type |
|--------------|------------------------------------|------|
| `roundToInt` | round to nearest int like round(x) | Int |
| | | |
| | | |
| | | |
| | | |
| | | |