MathGroup Archive 2007

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

Search the Archive

Re: Updating NumberPadding?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg84411] Re: Updating NumberPadding?
  • From: "Steve Luttrell" <steve at _removemefirst_luttrell.org.uk>
  • Date: Fri, 21 Dec 2007 20:42:55 -0500 (EST)
  • References: <200712180017.TAA06282@smc.vnet.net> <fk7si4$rl8$1@smc.vnet.net> <fkao5l$dp7$1@smc.vnet.net> <fkcte4$1sf$1@smc.vnet.net> <fkfsro$2e$1@smc.vnet.net>

Does this do the sort of thing that you want?

Dynamic[NumberForm[Clock[], {5, 2}]]

Stephen Luttrell
West Malvern, UK

"David Park" <djmpark at comcast.net> wrote in message 
news:fkfsro$2e$1 at smc.vnet.net...
> But suppose one has a single number that is displayed dynamically and one
> doesn't want it to jump around with successive displays in time? That is 
> the
> situation I have.
>
> -- 
> David Park
> djmpark at comcast.net
> http://home.comcast.net/~djmpark/
>
>
> "Albert Retey" <awnl at arcor.net> wrote in message
> news:fkcte4$1sf$1 at smc.vnet.net...
>> Kevin J. McCann wrote:
>>> Carl,
>>>
>>> If you raise Pi to zero or a negative power of ten, your last form below
>>> does not work correctly, i.e. N[Pi]10^-1 produces 0.31x10.
>>>
>>> I agree with David that it would be REALLY nice if WRI made it easier
>>> for us to produce nice columnar data. I know it is not easy, as the
>>> examples below show. I know from my FORTRAN days that a lot of CPU
>>> cycles were used on formatted input and output. Still, it would be nice.
>>
>> Isn't this better addressed with using Grid and an explicit setting for
>> Alignment? The following gives me something that looks good enough for 
>> me:
>>
>> Style[
>>  Grid[{
>>    {NumberForm[1000*N@Pi, {5, 2}]},
>>    {NumberForm[N@Pi, {5, 2}]},
>>    {NumberForm[N[Pi] 10^-1, {5, 2}]}
>>   },
>>   Alignment -> {"."}
>>   ],
>>  FontFamily -> "Helvetica"
>>  ]
>>
>> albert
>>
>
> 



  • Prev by Date: Re: disable "disable dynamic updating?"?
  • Next by Date: Re: disable "disable dynamic updating?"?
  • Previous by thread: Re: Updating NumberPadding?
  • Next by thread: Table[Plot[]]doesn't work as it should in v6