Namespaces
Variants
Views
Actions

std::frexp

From cppreference.com
< cpp‎ | numeric‎ | math
Revision as of 11:22, 24 May 2014 by Diego91b (Talk | contribs)

 
 
 
Common mathematical functions
Functions
Basic operations
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
Exponential functions
(C++11)
(C++11)
(C++11)
(C++11)
Power functions
(C++11)
(C++11)
Trigonometric and hyperbolic functions
(C++11)
(C++11)
(C++11)
Error and gamma functions
(C++11)
(C++11)
(C++11)
(C++11)
Nearest integer floating point operations
(C++11)(C++11)(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
Floating point manipulation functions
(C++11)(C++11)
(C++11)
(C++11)
frexp
(C++11)(C++11)
(C++11)
Classification/Comparison
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
Macro constants
(C++11)(C++11)(C++11)(C++11)(C++11)
 
Defined in header <cmath>
float       frexp( float x, int* exp );
double      frexp( double x, int* exp );
long double frexp( long double x, int* exp );
double      frexp( Integral x, int* exp );
(since C++11)

Decomposes given floating point value x to significand and exponent.

Parameters

x - 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]
(C++11)
extracts exponent of the number
(function) [edit]
(C++11)
extracts exponent of the number
(function) [edit]
decomposes a number into integer and fractional parts
(function) [edit]
C documentation for frexp