Skip to content

Double → Int ​

Converts a double signal to an integer using a selectable rounding rule (truncate, round-to-nearest, floor, or ceil).

Category: Math

Ports ​

PortKindSignalNotes
inControl inputReal
outControl outputInteger

Parameters ​

ParameterTypeDefaultUnitsDescriptionID
ModeChoice: Truncate (toward 0) / Round (nearest) / Floor / CeilTruncate (toward 0)—Rounding rule applied when converting the double input to an integer output.mode

Used in samples ​