Re: DigitBlock problem

*To*: mathgroup at smc.vnet.net*Subject*: [mg39604] Re: DigitBlock problem*From*: Paul Abbott <paul at physics.uwa.edu.au>*Date*: Wed, 26 Feb 2003 02:41:15 -0500 (EST)*Organization*: The University of Western Australia*References*: <b34qpo$gkg$1@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

In article <b34qpo$gkg$1 at smc.vnet.net>, Dragan Stancevic <visitor at xalien.org> wrote: > I am evaluating the following expression: > > For[ i = 15, i < 17, > Print[PaddedForm[BaseForm[i, 2], 8, NumberPadding -> {"0", ""}, > NumberSigns -> {"", ""}, DigitBlock -> 4, NumberSeparator -> " "]]; i++] > > Which produces the following: > 000001111 > 0001 0000 > > Can someone explain why is the DigitBlock->4 and NumberSeparator -> " " > failing to apply to the padded 0s? Am I missing something? 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. 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