GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
FREXP(3) FreeBSD Library Functions Manual FREXP(3)

frexp, frexpf, frexpl
convert floating-point number to fractional and integral components

Math Library (libm, -lm)

#include <math.h>

double
frexp(double value, int *exp);

float
frexpf(float value, int *exp);

long double
frexpl(long double value, int *exp);

The frexp(), frexpf() and frexpl() functions break a floating-point number into a normalized fraction and an integral power of 2. They store the integer in the int object pointed to by exp.

These functions return the value x, such that x is a double with magnitude in the interval [1/2, 1) or zero, and value equals x times 2 raised to the power *exp. If value is zero, both parts of the result are zero.

ldexp(3), math(3), modf(3)

The frexp(), frexpf(), and frexpl() functions conform to ISO/IEC 9899:1999 (“ISO C99”).
March 4, 2005 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.