n = LENGTH(a); if n>3 then do i=n-3 to 1 by -3; a=INSERT('.',a,i); end
 
Brian
 

________________________________

From: IBM Mainframe Discussion List on behalf of Daniel Cremieux
Sent: Wed 29/6/05 17:05
To: IBM-MAIN@BAMA.UA.EDU
Subject: rexx , formatting question



dear gurus,

a=15.53666222

How to display only the 2 first decimal digit :

=> a=15.53 (or 15.54 i don't mind for the precision)

Thank you

another question :
a=1555666
is there any way to display it as 1.555.666 ( easier to read)


great thanks

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html
This e-mail message is for the sole use of the intended recipient(s)and may 
contain confidential and privileged information of Transaction NetworkServices. 
 
Any unauthorized review, use, disclosure or distribution isprohibited.  If you 
are not the intended recipient, please contact thesender by reply e-mail and 
destroy all copies of the original message.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to