Mathematical routines

Functions connected to calculating and coverting numbers.

Name Description Page
____________________________________________________________________________

Abs
Calculate absolute value 450
Arctan
Calculate inverse tangent 453
Cos
Calculate cosine of angle 478
Dec
Decrease value of variable 480
Exp
Exponentiate 493
Frac
Return fractional part of floating point value 503
Hi
Return high byte/word of value 510
Inc
Increase value of variable 513
Int
Calculate integer part of floating point value 523
Ln
Calculate logarithm 528
Lo
Return low byte/word of value 529
Odd
Is a value odd or even ? 539
Pi
Return the value of pi 544
Power
Raise float to integer power 547
Random
Generate random number 550
Randomize
Initialize random number generator 551
Round
Round floating point value to nearest integer number 561
Sin
Calculate sine of angle 574
Sqr
Calculate the square of a value 577
Sqrt
Calculate the square root of a value 578
Swap
Swap high and low bytes/words of a variable 583
Trunc
Truncate a floating point value 585