User manual
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
689
log10
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
modf
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
pow
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
sin
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
sinh
Prototype
sub function sinh(dim x as oat) as oat
Description Function returns the hyperbolic sine of x, dened mathematically as (e
x
-e
-x
)/2. If the value of x is too
large (if overow occurs), the function fails.
Example
res = sinh(PI/2.) ‘ res = 2.301296
sqrt
Prototype
sub function sqrt(dim x as oat) as oat
Description Function returns the non negative square root of x.
Example
res = sqrt(10000.) ‘ res = 100.0000