MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

PaddedForm bug?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg47877] PaddedForm bug?
  • From: Konstantin L Kouptsov <kouptsov at wsu.edu>
  • Date: Thu, 29 Apr 2004 03:06:06 -0400 (EDT)
  • Organization: Washington State University
  • Sender: owner-wri-mathgroup at wolfram.com

Hello mathgroup,

This works as expected:

In:= Table[ToString[PaddedForm[t, {1, 2}]], {t, 0, 1, 0.1}]

Out:= { 0.00,  0.10,  0.20,  0.30,  0.40,  0.50,  0.60,  0.70,  0.80,  0.90,  1.00}

This gives wrong output:


In:= Table[ToString[PaddedForm[t, {1, 2}]], {t, 0, 1, 0.05}]

Out:= { 0.00,  0.05,  0.10,  0.20,  0.20,  0.30,  0.30,  0.40,  0.40,  0.50, 
0.50, 0.60,  0.60,  0.70,  0.70,  0.80,  0.80,  0.90,  0.90,  1.00,  1.00}

Should be 0.00, 0.05, 0.10, 0.15, 0.20, 0.25,...

A bug?



  • Prev by Date: Re: i don't understand mapping function over a long list
  • Next by Date: Re: strange problems with Random
  • Previous by thread: RE: Mapping / GIS Applications
  • Next by thread: Re: PaddedForm bug?