Namespaces
Variants
Views
Actions

frexp

From cppreference.com
< c‎ | numeric‎ | math
Revision as of 16:28, 1 July 2013 by P12bot (Talk | contribs)

 
 
 
Common mathematical functions
Functions
Basic operations
(C99)
(C99)
(C99)
(C99)
(C99)
(C99)(C99)(C99)
Exponential functions
(C99)
(C99)
(C99)
(C99)
Power functions
(C99)
(C99)
Trigonometric and hyperbolic functions
(C99)
(C99)
(C99)
Error and gamma functions
(C99)
(C99)
(C99)
(C99)
Nearest integer floating point operations
(C99)(C99)(C99)
(C99)
(C99)(C99)(C99)
Floating point manipulation functions
(C99)(C99)
(C99)
(C99)
frexp
Classification
(C99)
(C99)
(C99)
Macro constants
 
Defined in header <math.h>
float       frexpf( float arg, int* exp );
(since C99)
double      frexp( double arg, int* exp );
long double frexpl( long double arg, int* exp );
(since C99)

Decomposes given floating point value to significand and exponent.

Parameters

arg - floating point value
exp - pointer to integer value to store the exponent to

Return value

Significand of the given floating point number in the range of [0.5; 1). The exponent is put into integer value pointed to by exp.

See also

multiplies a number by 2 raised to a power
(function) [edit]
(C99)
extracts exponent of the number
(function) [edit]
(C99)
extracts exponent of the number
(function) [edit]
decomposes a number into integer and fractional parts
(function) [edit]