xref: /freebsd/lib/msun/man/nextafter.3 (revision 6af2c5a60ce3e704613a73a02fbcfec7bb7cc3e4)
129bf6af8SDavid Schultz.\" Copyright (c) 1985, 1991 Regents of the University of California.
229bf6af8SDavid Schultz.\" All rights reserved.
329bf6af8SDavid Schultz.\"
429bf6af8SDavid Schultz.\" Redistribution and use in source and binary forms, with or without
529bf6af8SDavid Schultz.\" modification, are permitted provided that the following conditions
629bf6af8SDavid Schultz.\" are met:
729bf6af8SDavid Schultz.\" 1. Redistributions of source code must retain the above copyright
829bf6af8SDavid Schultz.\"    notice, this list of conditions and the following disclaimer.
929bf6af8SDavid Schultz.\" 2. Redistributions in binary form must reproduce the above copyright
1029bf6af8SDavid Schultz.\"    notice, this list of conditions and the following disclaimer in the
1129bf6af8SDavid Schultz.\"    documentation and/or other materials provided with the distribution.
1229bf6af8SDavid Schultz.\" 3. All advertising materials mentioning features or use of this software
1329bf6af8SDavid Schultz.\"    must display the following acknowledgement:
1429bf6af8SDavid Schultz.\"	This product includes software developed by the University of
1529bf6af8SDavid Schultz.\"	California, Berkeley and its contributors.
1629bf6af8SDavid Schultz.\" 4. Neither the name of the University nor the names of its contributors
1729bf6af8SDavid Schultz.\"    may be used to endorse or promote products derived from this software
1829bf6af8SDavid Schultz.\"    without specific prior written permission.
1929bf6af8SDavid Schultz.\"
2029bf6af8SDavid Schultz.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2129bf6af8SDavid Schultz.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2229bf6af8SDavid Schultz.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2329bf6af8SDavid Schultz.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2429bf6af8SDavid Schultz.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2529bf6af8SDavid Schultz.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2629bf6af8SDavid Schultz.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2729bf6af8SDavid Schultz.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2829bf6af8SDavid Schultz.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2929bf6af8SDavid Schultz.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3029bf6af8SDavid Schultz.\" SUCH DAMAGE.
3129bf6af8SDavid Schultz.\"
3229bf6af8SDavid Schultz.\"     from: @(#)ieee.3	6.4 (Berkeley) 5/6/91
3329bf6af8SDavid Schultz.\" $FreeBSD$
3429bf6af8SDavid Schultz.\"
356af2c5a6SDavid Schultz.Dd May 4, 2005
3629bf6af8SDavid Schultz.Dt NEXTAFTER 3
3729bf6af8SDavid Schultz.Os
3829bf6af8SDavid Schultz.Sh NAME
3929bf6af8SDavid Schultz.Nm nextafter ,
406af2c5a6SDavid Schultz.Nm nextafterf ,
416af2c5a6SDavid Schultz.Nm nextafterl ,
426af2c5a6SDavid Schultz.Nm nexttoward ,
436af2c5a6SDavid Schultz.Nm nexttowardf ,
446af2c5a6SDavid Schultz.Nm nexttowardl
4529bf6af8SDavid Schultz.Nd next representable value
4629bf6af8SDavid Schultz.Sh LIBRARY
4729bf6af8SDavid Schultz.Lb libm
4829bf6af8SDavid Schultz.Sh SYNOPSIS
4929bf6af8SDavid Schultz.In math.h
5029bf6af8SDavid Schultz.Ft double
5129bf6af8SDavid Schultz.Fn nextafter "double x" "double y"
5229bf6af8SDavid Schultz.Ft float
5329bf6af8SDavid Schultz.Fn nextafterf "float x" "float y"
546af2c5a6SDavid Schultz.Ft long double
556af2c5a6SDavid Schultz.Fn nextafterl "long double x" "long double y"
566af2c5a6SDavid Schultz.Ft double
576af2c5a6SDavid Schultz.Fn nexttoward "double x" "long double y"
586af2c5a6SDavid Schultz.Ft float
596af2c5a6SDavid Schultz.Fn nexttowardf "float x" "long double y"
606af2c5a6SDavid Schultz.Ft long double
616af2c5a6SDavid Schultz.Fn nexttowardl "long double x" "long double y"
6229bf6af8SDavid Schultz.Sh DESCRIPTION
636af2c5a6SDavid SchultzThese functions
6429bf6af8SDavid Schultzreturn the next machine representable number from
6529bf6af8SDavid Schultz.Fa x
6629bf6af8SDavid Schultzin direction
6729bf6af8SDavid Schultz.Fa y .
6829bf6af8SDavid Schultz.Sh SEE ALSO
6929bf6af8SDavid Schultz.Xr ieee 3 ,
7029bf6af8SDavid Schultz.Xr math 3
7129bf6af8SDavid Schultz.Sh STANDARDS
7229bf6af8SDavid SchultzThe
736af2c5a6SDavid Schultz.Fn nextafter ,
746af2c5a6SDavid Schultz.Fn nextafterf ,
756af2c5a6SDavid Schultz.Fn nextafterl ,
766af2c5a6SDavid Schultz.Fn nexttoward ,
776af2c5a6SDavid Schultz.Fn nexttowardf ,
7829bf6af8SDavid Schultzand
796af2c5a6SDavid Schultz.Fn nexttowardl
8029bf6af8SDavid Schultzroutines conform to
8129bf6af8SDavid Schultz.St -isoC-99 .
8229bf6af8SDavid SchultzThey implement the Nextafter function recommended by
8329bf6af8SDavid Schultz.St -ieee754 ,
8429bf6af8SDavid Schultzwith the extension that
8529bf6af8SDavid Schultz.Fn nextafter +0.0, -0.0
8629bf6af8SDavid Schultzreturns
8729bf6af8SDavid Schultz.Li -0.0 ,
8829bf6af8SDavid Schultzand
8929bf6af8SDavid Schultz.Fn nextafter -0.0, +0.0
9029bf6af8SDavid Schultzreturns
9129bf6af8SDavid Schultz.Li +0.0 .
9229bf6af8SDavid Schultz.Sh HISTORY
9329bf6af8SDavid SchultzThe
9429bf6af8SDavid Schultz.Fn nextafter
9529bf6af8SDavid Schultzfunction appeared in
9629bf6af8SDavid Schultz.Bx 4.3 ,
9729bf6af8SDavid Schultzand
9829bf6af8SDavid Schultz.Fn nextafterf
9929bf6af8SDavid Schultzappeared in
10029bf6af8SDavid Schultz.Fx 2.0 .
101