Mikroelektronika MIKROE-350 Scheda Tecnica

Pagina di 526
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 as realas real
Description
The function returns the value of e — the base of natural logarithms — raised to
the power 
x
(i.e. 
ex
).
Prototype
sub function fabs(dim as realas real
Description The function returns the absolute (i.e. positive) value of 
d
.
Prototype
sub 
function floor(dim as realas real
Description The function returns the value of parameter 
x
rounded down to the nearest integer.
Prototype
sub function frexp(dim value as realdim byref eptr as integer)
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.
Prototype
sub function ldexp(dim value as realdim newexp as integeras 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 as realas real
Description The function returns the natural logarithm of 
x
(i.e. 
loge(x)
).
Prototype
sub function log10(dim as realas real
Description The function returns the base-10 logarithm of 
x
(i.e. 
log10(x)
).