.\" Copyright (c) 1991 The Regents of the University of California. .\" All rights reserved. .\" .\" This code is derived from software contributed to Berkeley by .\" the American National Standards Committee X3, on Information .\" Processing Systems. .\" .\" %sccs.include.redist.man% .\" .\" @(#)frexp.3 6.5 (Berkeley) 06/29/91 .\" .Dd .Dt FREXP 3 .Os .Sh NAME .Nm frexp .Nd convert floating-point number to fractional and integral components .Sh SYNOPSIS .Fd #include .Ft double .Fn frexp "double value" "int *exp" .Sh DESCRIPTION The .Fn frexp function breaks a floating-point number into a normalized fraction and an integral power of 2. It stores the integer in the .Em int object pointed to by .Fa exp . .Sh RETURN VALUES The .Fn frexp function returns the value .Em x , such that .Em x is a .Em double with magnitude in the interval .Bq 1/2 , 1 or zero, and .Fa value equals .Em x times 2 raised to the power .Fa *exp . If .Fa value is zero, both parts of the result are zero. .Sh SEE ALSO .Xr ldexp 3 , .Xr modf 3 , .Xr math 3 .Sh STANDARDS The .Fn frexp function conforms to .St -ansiC .