rintf

Rounds to nearest integral value.

Library:LibC
Classification:ANSI
Service:Math

Syntax

  #include <math.h> 
   
  float rintf (
     float   x);
  

Parameters

x

(IN) Specifies the floating-point value to round.

Return Values

If successful, returns the integer (represented as a double precision number) nearest x in the direction of the current rounding mode.

If the correct value would cause overflow, a range error occurs.

See Also