User manual

Table Of Contents
mikroC PRO for PIC32
MikroElektronika
613
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
modf
Prototype
double modf(double val, double *iptr);
Description Function returns the signed fractional component of val, placing its whole number component into the
variable pointed to by iptr.
Example
doub = modf(6.25, &iptr); // doub = 0.25, iptr = 6.00
pow
Prototype
double pow(double x, double y);
Description Function returns the value of x raised to the power y (i.e. x
y
). If x is negative, the function will
automatically cast y into unsigned long.
Example
doub = pow(10.,5.); // doub = 9.999984e+4