Mikroelektronika MIKROE-350 Scheda Tecnica
exp
fabs
floor
frexp
ldexp
log
log10
487
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub function exp(dim x as real) as real
Description
The function returns the value of e — the base of natural logarithms — raised to
the power
the power
x
(i.e.
ex
).
Prototype
sub function fabs(dim d as real) as real
Description The function returns the absolute (i.e. positive) value of
d
.
Prototype
sub
function floor(dim x as real) as real
Description The function returns the value of parameter
x
rounded down to the nearest integer.
Prototype
sub function frexp(dim value as real, dim byref eptr as integer)
as real
as real
Description
The function splits a floating-point value
value
into a normalized fraction and an
integral power of 2. The return value is a normalized fraction and the integer
exponent is stored in the object pointed to by eptr.
exponent is stored in the object pointed to by eptr.
Prototype
sub function ldexp(dim value as real, dim newexp as integer) as real
Description
The function returns the result of multiplying the floating-point number
value
by
2 raised to the power newexp (i.e. returns
value * 2newexp
).
Prototype
sub function log(dim x as real) as real
Description The function returns the natural logarithm of
x
(i.e.
loge(x)
).
Prototype
sub function log10(dim x as real) as real
Description The function returns the base-10 logarithm of
x
(i.e.
log10(x)
).