home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
RXCALC.ZIP
/
MEMCLEAR.CAL
< prev
next >
Wrap
Text File
|
1991-05-15
|
664b
|
13 lines
/* Rexx Calculator Memory Clear Key */
parse arg memory /* get the count of memories */
numeric digits CalcPrecision() /* set current precision */
numeric form value CalcForm() /* set current form */
if \datatype(memory, 'Whole') /* must be whole number */
then return 'Error' /* return error indicator */
if memory < 1 | memory >50 /* valid for counter */
then return 'Error' /* return error indicator */
'SET' trunc(memory) '0' /* store new value */