SAVE
SAVE <filename>[,<file type>][,<binary parameters>]
SAVE "PROG",P
SAVE "BINARY",B,10000,16000,10003
COMMAND: Save the program in memory with name <filename>. Binary parameters comprise
<start address>,<file length>[ ,<entry point>]
,A saves program in ASCII.
,P protects file.
,B saves an area of memory as a binary file - e.g. the screen.
Associatedkeywords: LOAD, RUN <filename>,MERGE,CHAIN, CHAIN MERGE
SGN
SGN (<numeric expression>)
10 INPUT "What's your current Bank Balance";CASH
20 IF SGN(CASH)<1 GOTO 30 ELSE 40
30 PRINT "Oh dear, oh dear":END
40 PRINT"You've got more money than me"
FUNCTION: Determines the sign of the <numeric expression>. Returns -1 if <numeric expression>
is less than 0, returns 0 if <numeric expression> = 0, and returns 1 if <numeric expression> is
greater than zero.
Associated keywords: ABS
SIN
SIN (<numeric expression>)
PRINT SIN(PI/2)
1
FUNCTION: Calculates the Real value for the Sine of <numeric expression>, defaulting to the
Radian measure mode unless otherwise declared by a DEG command.
Associatedkeywords: COS, TAN, ATN, DEG, RAD