OCLOperators ToReal () : Real
(Created page with " Returns a Real of value equal to ''self'', or |invalid| if ''self'' does not represent a real. {| class="wikitable" !Expression !Result |- |'3.0'.toReal() |3.0 |- |'4'.toR...")
 
No edit summary
(One intermediate revision by the same user not shown)
Line 1: Line 1:


Returns a Real of value equal to ''self'', or |invalid| if ''self'' does not represent a real.
Returns a Real of value equal to ''self'', or |invalid| if ''self'' does not represent a real.  
{| class="wikitable"
{| class="wikitable"
!Expression
!Expression
Line 14: Line 14:
|''invalid''
|''invalid''
|}
|}
[[Category:OCLOperators]]

Revision as of 07:49, 6 March 2023

This page was created by Peter on 2019-11-22. Last edited by Edgar on 2025-01-20.

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