OCLOperators ToReal () : Real
This page was created by Peter on 2019-11-22. Last edited by Edgar on 2025-08-31.
Returns a Real of value equal to self, or |invalid| if self does not represent a real.
| Expression | Result |
|---|---|
| '3.0'.toReal() | 3.0 |
| '4'.toReal() | 4.0 |
| 'toReal'.toReal() | invalid |
