Mathematical routines

Functions connected to calculating and coverting numbers.

Name Description Page
____________________________________________________________________________

Abs
Calculate absolute value 447
Arctan
Calculate inverse tangent 450
Cos
Calculate cosine of angle 475
Dec
Decrease value of variable 477
Exp
Exponentiate 490
Frac
Return fractional part of floating point value 500
Hi
Return high byte/word of value 507
Inc
Increase value of variable 510
Int
Calculate integer part of floating point value 520
Ln
Calculate logarithm 525
Lo
Return low byte/word of value 526
Odd
Is a value odd or even ? 536
Pi
Return the value of pi 541
Power
Raise float to integer power 544
Random
Generate random number 547
Randomize
Initialize random number generator 548
Round
Round floating point value to nearest integer number 558
Sin
Calculate sine of angle 571
Sqr
Calculate the square of a value 574
Sqrt
Calculate the square root of a value 575
Swap
Swap high and low bytes/words of a variable 580
Trunc
Truncate a floating point value 582