lyng/docs/Real.md
2025-06-02 11:38:17 +04:00

26 lines
822 B
Markdown

# 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 Lying 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 |
| | | |
| | | |
| | | |
| | | |
| | | |