OCLOperators strToInt
(Created page with " Returns an Integer of value equal to ''self'', or |invalid| if ''self'' does not represent an integer. {| class="wikitable" !Expression !Result |- |'3.0'.toInteger() |''in...")
 
(Automatically adding template at the end of the page.)
 
(6 intermediate revisions by 3 users not shown)
Line 5: Line 5:
!Result
!Result
|-
|-
|'3.0'.toInteger()
|'3.0'.strtoint
|''invalid''
|''invalid''
|-
|-
|'4'.toInteger()
|'4'.strtoint
|4
|4
|-
|-
|'toInteger'.toInteger()
|'toInteger'.strtoint
|''invalid''
|''invalid''
|}
|}
See also: [[OCLOperators Parse|Parse]]
[[Category:OCLOperators]]
{{Edited|July|12|2024}}

Latest revision as of 15:43, 10 February 2024

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

Expression Result
'3.0'.strtoint invalid
'4'.strtoint 4
'toInteger'.strtoint invalid

See also: Parse

This page was edited 101 days ago on 02/10/2024. What links here