821 B
821 B
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 Lyng 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 |