MDrivenWiki
Log in

OCLOperators Number::floor () : Integer

From MDrivenWiki
Revision as of 13:28, 6 December 2022 by Stephanie (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Number::floor () : Integer

Returns the integer part of self if it is a Real, self if it is an Integer.

Expression Result
(2.3).floor() 2
(2.8).floor() 2
2.floor() 2