English
Language : 

NSB8 Datasheet, PDF (74/158 Pages) List of Unclassifed Manufacturers – BASIC interpreter for Z80 family
grifo®
ITALIAN TECHNOLOGY
MATHEMATIC FUNCTIONS
ABS (<numeric expression>)
Returns the absolute value of the numeric expression:
ABS(3)=3, ABS(-3)=3 and ABS(0)=0
SGN (<numeric expression>)
Returns 1, 0, or -1, indicating whether the <numeric expression> is positive, zero valued, or negative,
respectively:
SGN(10)=1, SGN(0)=0 and SGN(-3.2)=-1
INT (<numeric expression>)
Returns the greatest integer value less than or equal to the value of the argument:
INT(3)=3, INT(3.9)=3 and INT(-3.5)=-4
LOG (<numeric expression>)
Returns an approximation to the natural logarithm of the value of the <numeric expression>. If LOG
is called with an argument value less than or equal to zero a program error will occur:
LOG(1)=0, LOG(7)=1.9459101 and LOG(.1)=-2.3025851
EXP (<numeric expression>)
Returns an approximation to the value of e raised to the power of the numeric expression:
EXP(0)=1, EXP(2)=7.3890562, EXP(-2.3025851)=.1, and EXP(1)=2.7182817
SQRT (<numeric expression>)
Returns an approximation to the positive square root of the numeric expression. A program error will
occur if this function is called with a negative argument:
SQRT(0)=0, SQRT(10)=3.1622776 and SQRT(.3)=.54772256
SIN (<numeric expression>)
This function computes an approximation to the trigonometric sine of the value of the numeric
expression. The expression must specify an angle in radians. (Note that 2 * pi radians = 360 degrees):
SIN(0)=0, SIN(3.1415926/2)=1
COS (<numeric expression>)
COS computes an approximation to the trigonometric cosine of the value of the numeric expression,
which must specify an angle in radians:
COS(0)=1, COS(3.1415926/2)=0
ATN (<numeric expression>)
The ATN function computes an approximation to the trigonometric arctangent function. The angle
value returned is expressed in radians:
ATN(5)=1.3734007, ATN(1.7)=1.0390722.
Page 62
NSB8
Rel. 5.10