*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> rintf (3)              
Title
Content
Arch
Section
 

RINT(3)

Contents


NAME    [Toc]    [Back]

     rint, rintf -- round to integral value in floating-point format

LIBRARY    [Toc]    [Back]

     Math Library (libm, -lm)

SYNOPSIS    [Toc]    [Back]

     #include <math.h>

     double
     rint(double x);

     float
     rintf(float x);

DESCRIPTION    [Toc]    [Back]

     The rint() and the rintf() functions return the integral value (represented
 as a double or float precision number) nearest to x according to
     the prevailing rounding mode.

SEE ALSO    [Toc]    [Back]

      
      
     abs(3), ceil(3), fabs(3), floor(3), ieee(3), math(3)

HISTORY    [Toc]    [Back]

     A rint() function appeared in Version 6 AT&T UNIX.


FreeBSD 5.2.1			March 10, 1994			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
ldexp OpenBSD multiply floating-point number by integral power of 2
ldexp FreeBSD multiply floating-point number by integral power of 2
ldexp Linux multiply floating-point number by integral power of 2
ldexp NetBSD multiply floating-point number by integral power of 2
frexp Linux convert floating-point number to fractional and integral components
frexp FreeBSD convert floating-point number to fractional and integral components
frexp NetBSD convert floating-point number to fractional and integral components
frexp OpenBSD convert floating-point number to fractional and integral components
modf FreeBSD extract signed integral and fractional values from floating-point number
modf NetBSD extract signed integral and fractional values from floating-point number
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service