User manual
610
mikoBasic PRO for PIC32
MikroElektronika
Prototype
sub function ldexp(dim value as oat, dim newexp as integer) as oat
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
res = ldexp(2.5, 2) ‘ res = 10
Prototype
sub function log(dim x as oat) as oat
Description Function returns the natural logarithm of x (i.e. log
e
(x)).
Example
res = log(10) ‘ res = 2.302585E
Prototype
sub function log10(dim x as oat) as oat
Description Function returns the base-10 logarithm of x (i.e. log
10
(x)).
Example
res = log10(100.) ‘ res = 2.000000
Prototype
sub function modf(dim val as oat, dim byref iptr as oat) as oat
Description Returns argument val split to the fractional part (function return val) and integer part (in number iptr).
Example
res = modf(6.25, iptr) ‘ res = 0.25, iptr = 6.00
Prototype
sub function pow(dim x as oat, dim y as oat) as oat
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
res = pow(10.,5.) ‘ res = 9.999984e+4
Prototype
sub function sin(dim arg as oat) as oat
Description Function returns the sine of f in radians. The return value is from -1 to 1.
Example
res = sin(PI/2.) ‘ res = 1.000000
ldexp
log
log10
modf
pow
sin