frexp(3M) Mathematical Library Functions frexp(3M)NAME
frexp, frexpf, frexpl - extract mantissa and exponent from a floating-point number
SYNOPSIS
cc [ 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.10 16 Aug 2004 frexp(3M)
Check Out this Related Man Page
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)
Hi,
This is the first time, i am doing UNIX & C stuff.
I have written one funtion like
#include <stdio.h>
seq(num)
int num;
{
int i,sum;
for (i=1; i<=num;i++)
sum+=i;
return(sum);
}
this seq funtion should have return values to unix script.
like
.. (4 Replies)
I am writing a script that needs to accept numbers into a variable by prompting and using the code
read num
case $num in
000)
break
;;
*)
I am fairly new to unix and am loving the versatility of the language but need a little shove in the right... (1 Reply)
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 All,
When I run the following command to export the data dump file:
$ exp DEV@ccprod
I get the following message:
Export done in US7ASCII character set and AL16UTF16 NCHAR character set server uses WE8ISO8859P1 character set (possible charset conversion).
The export works,... (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)
I am trying to write a script that raises a integer (m) by a exponent (n) using a while loop
ex. 5 raised to the power of 2 ..
I am a beginner and i dont know what is the opperand or command i have to use to make this happen..this is what i have so far...
echo "Enter a integer for the... (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)