Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!sun!amdahl!terry From: terry@uts.amdahl.com (Lewis T. Flynn) Newsgroups: comp.lang.rexx Subject: Re: Dollarizing Message-ID: <8acu01846b.I00@amdahl.uts.amdahl.com> Date: 1 May 91 23:30:09 GMT References: <91119.112324DSB100@psuvm.psu.edu> Reply-To: terry@amdahl.uts.amdahl.com (Lewis T. Flynn) Organization: Amdahl Corporation, Sunnyvale CA Lines: 28 In article <91119.112324DSB100@psuvm.psu.edu> DSB100@psuvm.psu.edu (David Barr) writes: >In article , lordbah@amusing.UUCP (Jeff Van Epps) >says: > >>In article <91118.012747DSB100@psuvm.psu.edu> DSB100@psuvm.psu.edu (David >>Barr) >>writes: >>> >>> How about using >>> >>> format(number,,2) ? >>> >>> This will automatically round the decimal to two decimal places, and >>> fill with zeros when necessary. > >>Sounds good, but I can't find any reference to "format" in my ARexx >>manual, and it says "function not found" when I try to run this. Where >>does "format" come from? > >Oops, I am using CMS Rexx, and it is a standard fuction in the IBM >package. Too bad ARexx didn't implement it. I find it very useful. > It's in the original language (as documented in Cowlishaw's book), but many implementations leave out things (like CMS leaves out charout, charin, etc.). Terry