MathGroup Archive 2005

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

Search the Archive

Re: Re: Weird behavior of NumberForm in ver 5.1

  • To: mathgroup at smc.vnet.net
  • Subject: [mg55150] Re: [mg55125] Re: [mg55107] Weird behavior of NumberForm in ver 5.1
  • From: yehuda ben-shimol <bsyehuda at gmail.com>
  • Date: Mon, 14 Mar 2005 03:43:53 -0500 (EST)
  • References: <200503120737.CAA21041@smc.vnet.net> <200503130957.EAA09964@smc.vnet.net>
  • Reply-to: yehuda ben-shimol <bsyehuda at gmail.com>
  • Sender: owner-wri-mathgroup at wolfram.com

Although suspicious, the followngs made NumberForm to behave correctly
on this example

SetAttributes[NumberForm, Listable]
NumberForm[{0.073808836682`30, 0.794740579742`30}, 5]
and as expected it gave

{0.073809, 0.79474}

yehuda

On Sun, 13 Mar 2005 04:57:43 -0500 (EST), DrBob <drbob at bigfoot.com> wrote:
> I see the same bug in version 5.1.1.
> 
> Bobby
> 
> On Sat, 12 Mar 2005 02:37:02 -0500 (EST), Luis Rademacher <lrademac at hotmail.com> wrote:
> 
> > Please compare the result of NumberForm between 5.0 and 5.1. It seems to
> > me that the right output is the one given by 5.0. Also tried a similar
> > example on 4.2, which seems to agree with 5.0
> >
> > ------------------------------------------------
> >
> > In[1]:=
> > NumberForm[{0.073808836682`30,0.794740579742`30},5]
> >
> > Out[1]//NumberForm=
> > {0.073809,0.79474}
> >
> > In[2]:=
> > $Version
> >
> > Out[2]=
> > 5.0 for Linux (November 18, 2003)
> >
> > ------------------------------------
> >
> > In[1]:=
> > NumberForm[{0.073808836682`30,0.794740579742`30},5]
> >
> > Out[1]//NumberForm=
> > {0.073809,0.794740000000000000000000000000}
> >
> > In[2]:=
> > $Version
> >
> > Out[2]=
> > 5.1 for Linux (October 25, 2004)
> >
> > ------------------------------------------------
> >
> > Does anybody know what is going on here?
> >
> > Luis.
> >
> >
> >
> >
> 
> --
> DrBob at bigfoot.com
> 
>


  • Prev by Date: Re: a request for WRI
  • Next by Date: Re: Mathematica cannot simplify a product of UnitStep functions
  • Previous by thread: Re: Weird behavior of NumberForm in ver 5.1
  • Next by thread: Re: Re: Re: Weird behavior of NumberForm in ver 5.1