round

Rounds a vector to the nearest integer.

nothrow @safe
T
round
(
T
)
()

Examples

assert(round(vector(.25, .5, .75)) == vector(0, 1, 1));

Meta