home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
VSCPPv8.zip
/
VACPP
/
IBMCPP
/
samples
/
TOOLKIT
/
CREXX
/
REXXCALC
/
MEMSTORE.CAL
< prev
next >
Wrap
Text File
|
1994-11-17
|
663b
|
13 lines
/* Rexx Calculator Memory Store Key */
parse arg memory, value /* 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) value + 0 /* store formatted number */