User manual
696
mikoC PRO for dsPIC
MikroElektronika
frexp
Prototype
double frexp(double value, int *eptr);
Description Function splits a oating-point value into a normalized fraction and an integral power of 2. The return
value is the normalized fraction and the integer exponent is stored in the object pointed to by eptr.
ldexp
Prototype
double ldexp(double value, int newexp);
Description Function returns the result of multiplying the oating-point number num by 2 raised to the power n (i.e.
returns x * 2
n
).
Example
doub = ldexp(2.5, 2); // doub = 10
log
Prototype
double log(double x);
Description Function returns the natural logarithm of x (i.e. log
e
(x)).
Example
doub = log(10); // doub = 2.302585E
log10
Prototype
double log10(double x);
Description Function returns the base-10 logarithm of x (i.e. log
10
(x)).
Example
doub = log10(100.); // doub = 2.000000










