OCLOperators toInteger () : Integer
(Created page with "Returns an Integer of value equal to self, or |invalid| if self does not represent an integer.")
 
(Automatically adding template at the end of the page.)
 
(4 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"
!Expression
!Result
|-
|'3.0'.toInteger()
|''invalid''
|-
|'4'.toInteger()
|4
|-
|'toInteger'.toInteger()
|''invalid''
|}
[[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