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, LOTS_OF_MONEY 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: fjh@mundook.cs.mu.OZ.AU (Fergus Henderson) Subject: Re: Leading zeros with Int_IO.Put()? Or another package? Date: 1996/11/24 Message-ID: <578rdj$3lj@mulga.cs.mu.OZ.AU>#1/1 X-Deja-AN: 198385143 references: organization: Comp Sci, University of Melbourne newsgroups: comp.lang.ada,comp.lang.pl1 Date: 1996-11-24T00:00:00+00:00 List-Id: ok@goanna.cs.rmit.edu.au (Richard A. O'Keefe) writes: >The point is that if I do > DECLARE D DECIMAL(6,2); /* +/- $9,999.99 */ >and 4000 lines later have > PUT (D) EDIT(P'$9999.99'); >then some day I am going to _change_ the declaration of D to > DECLARE D DECIMAL(8,2); > /* Money; limit has been raised to +/- $999.999.99 */ >but the picture is _not_ changed. >Better by far to have > DECLARE D DECIMAL(6,2); /* money */ > DECLARE D_PICTURE PICTURE ...whatever */ >so that when the declaration of D is revised, the declaration of >D_PICTURE gets revised to match. Still, that's not going to look good if your 131-column printouts now become 133 columns wide, forcing either wrap or truncation when you try to print them on a standard 132-column printer. >A layout is used to write *DATA*. It's not "where is it going" >that determines what picture should be used, but "what am I writing". "What am I writing" is important, but sometimes "where it is going" matters too. -- Fergus Henderson | "I have always known that the pursuit WWW: | of excellence is a lethal habit" PGP: finger fjh@128.250.37.3 | -- the last words of T. S. Garp.