Appearance
Double → Int
Converts a double signal to an integer using a selectable rounding rule (truncate, round-to-nearest, floor, or ceil).
Category: Math
Ports
| Port | Kind | Signal | Notes |
|---|---|---|---|
in | Control input | Real | |
out | Control output | Integer |
Parameters
| Parameter | Type | Default | Units | Description | ID |
|---|---|---|---|---|---|
| Mode | Choice: Truncate (toward 0) / Round (nearest) / Floor / Ceil | Truncate (toward 0) | — | Rounding rule applied when converting the double input to an integer output. | mode |