frexp(3M) Mathematical Library Functions frexp(3M)NAME
frexp, frexpf, frexpl - extract mantissa and exponent from a floating-point number
SYNOPSIS
c99 [ flag... ] file... -lm [ library... ]
#include <math.h>
double frexp(double num, int *exp);
float frexpf(float num, int *exp);
long double frexpl(long double num, int *exp);
DESCRIPTION
These functions break a floating-point number into a normalized fraction and an integral power of 2. They store the integer exponent in the
int object pointed to by exp.
RETURN VALUES
For finite arguments, these functions return the value x, such that x is a double with magnitude in the interval [1/2, 1) or 0, and num
equals x times 2 raised to the power *exp.
If num is NaN, NaN is returned and the value of *exp is unspecified.
If num is +- 0, +- 0 is returned and the value of *exp is 0.
If num is +-Inf, num is returned and the value of *exp is unspecified.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO isnan(3M), ldexp(3M), modf(3M), attributes(5), standards(5)SunOS 5.11 12 Jul 2006 frexp(3M)
Check Out this Related Man Page
FREXP(P) POSIX Programmer's Manual FREXP(P)
NAME
frexp, frexpf, frexpl - extract mantissa and exponent from a double precision number
SYNOPSIS
#include <math.h>
double frexp(double num, int *exp);
float frexpf(float num, int *exp);
long double frexpl(long double num, int *exp);
DESCRIPTION
These functions shall break a floating-point number num into a normalized fraction and an integral power of 2. The integer exponent shall
be stored in the int object pointed to by exp.
RETURN VALUE
For finite arguments, these functions shall return the value x, such that x has a magnitude in the interval [0.5,1) or 0, and num equals x
times 2 raised to the power *exp.
If num is NaN, a NaN shall be returned, and the value of *exp is unspecified.
If num is +-0, +-0 shall be returned, and the value of *exp shall be 0.
If num is +-Inf, num shall be returned, and the value of *exp is unspecified.
ERRORS
No errors are defined.
The following sections are informative.
EXAMPLES
None.
APPLICATION USAGE
None.
RATIONALE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
isnan() , ldexp() , modf() , the Base Definitions volume of IEEE Std 1003.1-2001, <math.h>
COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technol-
ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE
and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained
online at http://www.opengroup.org/unix/online.html .
IEEE /The Open Group 2003 FREXP(P)
Hi,
I am currently using the following command:
files=(ls enuCPU??.????.exp ntuCPU??.????.exp)
I need to now change the commmand to store the file names of files that have been modified before datetime equal to say '02/16/2008 20:30:00'
What could I use? (2 Replies)
Hi folks,
i know its totally diff topic on this community ... :-)
Are you interested in bike riding !!!
if yes , what is your fav bike ?
what bike are you having now at your home ?
what is your longest ride ?
I have a indian made 200cc bike .. most of the time, i... (2 Replies)
Hi,
Can you help me on this two problems?
how can i get :
from input: /ect/exp/hom/bin ==> output: exp
and
from input: aex1234 =====>output: ex
thanks, (1 Reply)
Hi, I need
to make some extraction . with the following input to get the right output.
input: /etc/exp/home/bin ====> output: exp
and
input: aex1234 ===> output: ex
Thanks for your help, (4 Replies)
I have data as follow in the txt file.
I want to skip line starting with '#' sign.
#command program
abc defmt
exp refmt
... ...
I want to store abc exp .... in a array.
I want to store defmt refmt in a array
I need command to read each line in the file.
I need... (6 Replies)
Hi,
I'm new to unix so hopefully you can help!
I'm using the below command to extract a tables contents and store it in a dmp file:
exp OWNER/OWNER@LINK FILE=exp.dat TABLES=TABLE_TEST
This works fine and dumps the table into the exp.dat file.
What i can't figure out, is how to... (3 Replies)
Hello,
How can I change this code
a=$(egrep "exp" $logFiles -oh);
aCount=$(egrep "exp" $logFiles -oh| wc -l);
to something like this
a=$(egrep "exp" $logFiles -oh);
aCount = $a| wc -l
What I mean I do not want to execute the egrep twice because it takes a lot of time
Regards (6 Replies)
Im blanking on how to do this. I have a file im editing in the vi but i can not get my output to be just in one column. exp:
I want this line to look like this.
I
Want
this
line
to
look
like
this.
Please help, I thought it was using the tr but im doing something wrong. (3 Replies)