🚀 Welcome to MDriven Learn –  Don’t miss the latest Release Notes.
OCLOperators toInteger () : Integer
This page was created by Stephanie on 2023-04-12. Last edited by Restore-user on 2026-10-21.

toInteger () : Integer

Returns an Integer with a 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