frexp.3
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3 代码 · 共 66 行
3
66 行
.\" SCCSID: @(#)frexp.3 6.3 8/30/89.TH frexp 3.SH Namefrexp, ldexp, modf \- split into mantissa and exponent.SH Syntax.nf.B #include <math.h>.PP.B double frexp(\fIvalue, eptr\fP).B double \fIvalue\fP;.B int *\fIeptr\fP;.PP.B double ldexp(\fIvalue, exp\fP).B double \fIvalue\fP;.PP.B double modf(\fIvalue, iptr\fP).B double \fIvalue, *iptr\fP;.SH Description.NXR "frexp subroutine".NXR "ldexp subroutine".NXR "modf subroutine".NXR "mantissa" "splitting into".NXR "exponent" "splitting into"The.PN frexpsubroutinereturns the mantissa of a double .I valueas a double quantity,.I x,of magnitude less than 1.0 and greater than or equal to0.5 (0.5 <= |x| < 1) and stores an integer .I nsuch that.I value=\fIx\fP*2**\fIn\fPindirectly through .I eptr..PPThe.PN ldexpreturns the quantity\fIvalue*2**\fIexp\fP..PPThe.PN modfreturns the positive fractional part of.I valueand stores the integer part indirectlythrough .I iptr..SH Return ValuesIf .PN ldexpwould cause overflow, \(+-HUGE_VALis returned (according to the sign of.IR value )and.I errnois set to ERANGE. If.PN ldexpwould cause underflow, 0 is returned and.I errnois set to ERANGE.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?