Basic
S
GN(
number)
Determines
number’s
sign.
If
number
is a negative number, SGN
returns
-1.
If
number
is
a
positive number, SGN returns
1.
If
number
is zero, SGN returns 0.
PRINT SGN(-55) Y=SGN(A
*
B)
SHELL
[command]
Advanced Statement. Loads and executes another program
(.EXE
or
.COW
as a
child process
to
the original program. After the child
process ends, control returns to the
BASIC
program
at
the state-
ment following the SHELL statement.
Command
is
a
string expression containing the name of the program
you want to run.
SHELL
CENTER1
SIN(number)
Returns the sine of
number. Number
must be in radians.
PRINT SIN(7.961 S=SIN(T)
SOUND
tone,duration[ ,[volume][
,[voice]]]
SOUND
ON
SOUND
OFF
Generates
a
sound with the
tone
and
duration
specified. While
a
SOUND statement is producing sound, the program continues
to
execute.
Tone
is an integer in the range
1
to 1023, indicating the frequency
in Hertz.
tone
=
CINT (3579545/32 *frequency)
Note
Frequency
Middle
C
523.25
D 587.33
E
659.26
F
698.46
Note
Frequency
G 783.99
A
880.00
B
987.77
C 1046.50
Tundy
1000
63