.ModelicaReference.Operators.'integer()'

Information

Round Real number towards minus infinity

Syntax

integer(x)

Description

Returns the largest integer not greater than x. The argument shall have type Real. The result has type Integer.

[Note, outside of a when clause state events are triggered when the return value changes discontinuously.]

Examples

integer({-3.14, 3.14})
 = {-4, 3}

Generated at 2020-07-12T01:53:50Z by OpenModelicaOpenModelica 1.16.0~dev-548-gd3091d6 using GenerateDoc.mos