Re: NumberPadding on the left
- To: mathgroup at smc.vnet.net
- Subject: [mg82848] Re: NumberPadding on the left
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Thu, 1 Nov 2007 05:15:10 -0500 (EST)
- Organization: Uni Leipzig
- References: <fg9pq4$n29$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
Hi, the sign of the number ? Regards Jens zac wrote: > Dear Group, > > I have the following code: > > PaddedForm[{.1, 1, 11, 111}, {5, 3}, NumberPadding -> {"0", "0"}] > > which returns: {000.100, 001.000, 011.000, 0111.000} > > Obviously, I do not want the leftmost 0 in case of the last entry 111. > What I want is to have exactly 6 digits, where 3 digits is always on > the right side of the decimal point. I know I can convert all the > entries to string and than pad them from the left, but this does not > tell me why the last number here (111) is padded from the left. > Any suggestion? > > Istvan Zachar > >