OCLOperators toInteger () : Integer
No edit summary
(Automatically adding template at the end of the page.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=== toInteger () : Integer ===
Returns an Integer of value equal to self, or |invalid| if self does not represent an integer.
Returns an Integer of value equal to self, or |invalid| if self does not represent an integer.
{| class="wikitable"
{| class="wikitable"
Line 14: Line 15:
|}
|}
[[Category:OCL String Operators]]
[[Category:OCL String Operators]]
{{Edited|July|12|2024}}

Latest revision as of 15:43, 10 February 2024

toInteger () : Integer

Returns an Integer of value equal to self, or |invalid| if self does not represent an integer.

Expression Result
'3.0'.toInteger() invalid
'4'.toInteger() 4
'toInteger'.toInteger() invalid
This page was edited 97 days ago on 02/10/2024. What links here