3.291. __nv_roundf

float @__nv_roundf(float %x)

Round to nearest integer value in floating-point.

Round x to the nearest integer value in floating-point format, with halfway cases rounded away from zero.

Note

This function may be slower than alternate rounding methods. See ::rint().

Returns

Returns rounded integer value.