diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-26 16:38:00 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-26 16:38:00 -0400 |
| commit | 97d5c458cfa039d857301e1ca7d5af3beb37131d (patch) | |
| tree | b460cd850d0537eb71806ba30358840377b27688 /static/unix-v10/man3/frexp.3 | |
| parent | b89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff) | |
build: Better Build System
Diffstat (limited to 'static/unix-v10/man3/frexp.3')
| -rw-r--r-- | static/unix-v10/man3/frexp.3 | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/static/unix-v10/man3/frexp.3 b/static/unix-v10/man3/frexp.3 new file mode 100644 index 00000000..1008ccf7 --- /dev/null +++ b/static/unix-v10/man3/frexp.3 @@ -0,0 +1,49 @@ +.TH FREXP 3 +.CT 2 math data_man +.SH NAME +frexp, ldexp, modf \(mi split into mantissa and exponent +.SH SYNOPSIS +.B #include <math.h> +.PP +.nf +.B double frexp(value, eptr) +.B double value; +.B int *eptr; +.PP +.B double ldexp(value, exp) +.B double value; +.PP +.B double modf(value, iptr) +.B double value, *iptr; +.SH DESCRIPTION +.I Frexp +returns the mantissa of +.I value +and stores the exponent indirectly through +.I eptr, +so that +.I value += +.if t .IR frexp ( value )\(mu2\u\s-2 \(**eptr \s0\d. +.if n .IR frexp ( value )*2** (*eptr). +.PP +.I Ldexp +returns the quantity +.if t .IR value \(mu2\u\s-2 exp \s0\d. +.if n .IR value *2** exp. +.PP +.I Modf +returns the positive fractional part of +.I value +and stores the integer part indirectly +through +.I iptr. +.SH DIAGNOSTICS +On underflow +.I ldexp +returns 0; on +overflow it returns a properly signed largest value. +In both cases it sets +.I errno +to +.BR ERANGE . |
