%-1s            - a string of a minimum of 1 character length, left aligned.
%1s            - a string of a minimum of 1 character length, right aligned.
%-1.1d        - a int of a minimum of 1 character length, left aligned, and
                   trimmed at 1 character.
                   example: "%-1.1d time 10 equals %d", 50, 50
                   output: "5 times 10 equals 50"
%1.1d        - same as above, but right aligned instead.

- Valnir

----- Original Message ----- From: "Jesse" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, September 05, 2004 8:02 AM
Subject: Formatting a Variable




Can someone give me a quick lesson on what:

%-1s
%1s
%-1.1d
and
%1.1d

do.

I understand that one of them limits the number of characters shown. One of
them pads a variable with x amount of spaces.  One of them right-justifies
a number by padding the left-side with zero's, and I have no idea what the
other one does.

Thanks.



--
ROM mailing list
[email protected]
http://www.rom.org/cgi-bin/mailman/listinfo/rom




Reply via email to