From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 101deb,495b037244521cf3 X-Google-Attributes: gid101deb,public X-Google-Thread: 103376,22b2c05a8088bbb2 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Leading zeros with Int_IO.Put()? Or another package? Date: 1996/11/08 Message-ID: #1/1 X-Deja-AN: 195417772 references: <327FB8A3.745B@itg-sepg.logicon.com> <55ubsh$lh0$1@goanna.cs.rmit.edu.au> organization: New York University newsgroups: comp.lang.ada,comp.lang.pl1 Date: 1996-11-08T00:00:00+00:00 List-Id: robin says "Interface to PL/I and you can use standard I/O: put edit (n) (P'-99999999'); and you don't have to worry about whether the number is negative either. The nines in the picture format force leading zeros to print. And if you want, you can insert commas in the output to make it more readable. The picture specification becomes: P'-999,999,999'" I guess robin knows PL/1 and does not know Ada! If you want to use picture editing to solve this kind of problem, then use the picture editing in Ada, no need to wander off into PL/1, even in the unlikely case that you have a PL/1 compiler at hand. Personally I dislike the picture stuff in PL/1, they tried to improve on COBOL and made a mess of it.