Function round [src]

Rounds the given floating point number to the nearest integer. If two integers are equally close, rounds away from zero. Uses a dedicated hardware instruction when available. This is the same as calling the builtin @round

Prototype

pub inline fn round(value: anytype) @TypeOf(value)

Source

pub inline fn round(value: anytype) @TypeOf(value) { return @round(value); }