roundToInt

Rounds a float, double, or real value to the nearest (away from zero) int value using lroundf.

bool
roundToInt
(
T
)
(,
out int output
)

Parameters

input T

the value to round - can be either a float, double, or real

output int

the converted value

Return Value

Type: bool

true if the conversion has succeeded (no errors)

Meta