From 9a6ff5bc53dedbaa601a1a76cbaf8a76afd60c9f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 21:41:06 +0200 Subject: Adding upstream version 6.7. Signed-off-by: Daniel Baumann --- man3/frexp.3 | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'man3/frexp.3') diff --git a/man3/frexp.3 b/man3/frexp.3 index c3c838a..9a5ab0d 100644 --- a/man3/frexp.3 +++ b/man3/frexp.3 @@ -11,7 +11,7 @@ .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH frexp 3 2023-07-20 "Linux man-pages 6.05.01" +.TH frexp 3 2024-01-29 "Linux man-pages 6.7" .SH NAME frexp, frexpf, frexpl \- convert floating-point number to fractional and integral components @@ -21,17 +21,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double frexp(double " x ", int *" exp ); .BI "float frexpf(float " x ", int *" exp ); .BI "long double frexpl(long double " x ", int *" exp ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR frexpf (), .BR frexpl (): .nf @@ -55,20 +55,20 @@ the normalized fraction is times a power of two, and its absolute value is always in the range 1/2 (inclusive) to 1 (exclusive), that is, [0.5,1). -.PP +.P If .I x is zero, then the normalized fraction is zero and zero is stored in .IR exp . -.PP +.P If .I x is a NaN, a NaN is returned, and the value of .I *exp is unspecified. -.PP +.P If .I x is positive infinity (negative infinity), @@ -93,19 +93,18 @@ T{ .BR frexpl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to SVr4, 4.3BSD, C89. .SH EXAMPLES The program below produces results such as the following: -.PP +.P .in +4n .EX .RB "$" " ./a.out 2560" @@ -132,8 +131,7 @@ main(int argc, char *argv[]) x = strtod(argv[1], NULL); r = frexp(x, &exp); \& - printf("frexp(%g, &e) = %g: %g * %d\[ha]%d = %g\en", - x, r, r, FLT_RADIX, exp, x); + printf("frexp(%g, &e) = %g: %g * %d\[ha]%d = %g\en", x, r, r, 2, exp, x); exit(EXIT_SUCCESS); } .EE -- cgit v1.2.3