3.289. __nv_trunc

Prototype:

double @__nv_trunc(double %x) 

Description:

Round x to the nearest integer value that does not exceed x in magnitude.

Returns:

Returns truncated integer value.

Library Availability:

Compute 2.0: Yes

Compute 3.0: Yes

Compute 3.5: Yes