diff options
Diffstat (limited to 'lib/libc/gen/modf.3')
-rw-r--r-- | lib/libc/gen/modf.3 | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/lib/libc/gen/modf.3 b/lib/libc/gen/modf.3 index f406ced..a3ee527 100644 --- a/lib/libc/gen/modf.3 +++ b/lib/libc/gen/modf.3 @@ -32,33 +32,40 @@ .\" @(#)modf.3 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd June 4, 1993 +.Dd March 29, 2008 .Dt MODF 3 .Os .Sh NAME -.Nm modf +.Nm modf , +.Nm modff , +.Nm modfl .Nd extract signed integral and fractional values from floating-point number .Sh LIBRARY -.Lb libc +.Lb libm .Sh SYNOPSIS .In math.h .Ft double .Fn modf "double value" "double *iptr" +.Ft float +.Fn modff "float value" "float *iptr" +.Ft long double +.Fn modfl "long double value" "long double *iptr" .Sh DESCRIPTION The -.Fn modf -function breaks the argument +.Fn modf , +.Fn modff , +and +.Fn modfl +functions break the argument .Fa value into integral and fractional parts, each of which has the same sign as the argument. It stores the integral part as a -.Vt double +floating point number in the object pointed to by .Fa iptr . .Sh RETURN VALUES -The -.Fn modf -function returns the signed fractional part of +These functions return the signed fractional part of .Fa value . .Sh SEE ALSO .Xr frexp 3 , @@ -66,6 +73,9 @@ function returns the signed fractional part of .Xr math 3 .Sh STANDARDS The -.Fn modf -function conforms to -.St -isoC . +.Fn modf , +.Fn modff , +and +.Fn modfl +functions conform to +.St -isoC-99 . |