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

  man pages->OpenBSD man pages -> rint (3)              
Title
Content
Arch
Section
 

RINT(3)

Contents


NAME    [Toc]    [Back]

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

SYNOPSIS    [Toc]    [Back]

     #include <math.h>

     double
     rint(double x);

     float
     rintf(float x);

DESCRIPTION    [Toc]    [Back]

     The  rint() function returns the integral value (represented
as a double
     precision number) nearest to x according to  the  prevailing
rounding mode.
     The  rintf()  function  is  a  single  precision  version of
rint().

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.

OpenBSD     3.6                          March      10,      1994
[ 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