OCLOperators ToReal () : Real
No edit summary
No edit summary
Line 15: Line 15:
|}
|}
[[Category:OCLOperators]]
[[Category:OCLOperators]]
[[Category:OCL String Operators]]

Revision as of 07:10, 12 April 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