rminnichadd manualse67599c16 years agoHistory
47 lines · 869 B · Text
RawDownload
.TH FREXP 2.SH NAMEfrexp, ldexp, modf \- split into mantissa and exponent.SH SYNOPSIS.B #include <u.h>.br.B #include <libc.h>.PP.Bdouble frexp(double value, int *eptr).PP.Bdouble ldexp(double value, int exp).PP.Bdouble modf(double value, double *iptr).SH DESCRIPTION.I Frexpreturns the mantissa of.I valueand stores the exponent indirectly through.IR eptr ,so that.I value=.if t .IR frexp ( value )×2\u\s-2 (*eptr) \s0\d.if n .IR frexp ( value )*2** (*eptr)..PP.I Ldexpreturns the quantity.if t .IR value ×2\u\s-2 exp \s0\d..if n .IR value *2** exp..PP.I Modfreturns the signed fractional part of.I valueand stores the integer part indirectlythrough.IR iptr ..SH SOURCE.B /sys/src/libc/port/frexp.c.SH SEE ALSO.IR intro (2).SH DIAGNOSTICS.I Ldexpreturns 0 for underflow and the appropriately signed infinityfor overflow.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t