Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2003
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

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

Search the Archive

Re: DigitBlock problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg39660] Re: DigitBlock problem
  • From: Paul Abbott <paul at physics.uwa.edu.au>
  • Date: Thu, 27 Feb 2003 00:34:17 -0500 (EST)
  • Organization: The University of Western Australia
  • References: <b34qpo$gkg$1@smc.vnet.net> <b3hr2h$ie3$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In article <b3hr2h$ie3$1 at smc.vnet.net>,
 Paul Abbott <paul at physics.uwa.edu.au> wrote:

> Looks like a bug to me. The same behavior occurs in the following 
> example:
> 
>   PaddedForm[10!, 12, 
>    DigitBlock -> 3, NumberPadding -> "0",   NumberSeparator -> " "]
> 
> NumberSeparator is not being applied to the 0 padding digits.

Eric Bynum from WRI Technical Support informed me that:

DigitBlock is not intended to affect the padding. If you want spaces in
the number padding you can include them in the value of the NumberPadding
option.

For example,

   Table[PaddedForm[BaseForm[i, 2], 8, 
      NumberPadding -> {"0000 ", ""},
      NumberSigns -> {"", ""}, 
      DigitBlock -> 4, 
      NumberSeparator -> " "], 
   {i, 127}] // TableForm

I still don't see why DigitBlock is not applied to the padding.

Cheers,
Paul

-- 
Paul Abbott                                   Phone: +61 8 9380 2734
School of Physics, M013                         Fax: +61 8 9380 1014
The University of Western Australia      (CRICOS Provider No 00126G)         
35 Stirling Highway
Crawley WA 6009                      mailto:paul at physics.uwa.edu.au 
AUSTRALIA                            http://physics.uwa.edu.au/~paul



  • Prev by Date: Re: Domain of Sin[ArcSin[x]] ?
  • Next by Date: Re: visualizing Map, Thread, Apply, etc.
  • Previous by thread: Re: DigitBlock problem
  • Next by thread: Re: Re: DigitBlock problem