[Date Index]
[Thread Index]
[Author Index]
Re: Re: Re: Weird behavior of NumberForm in ver 5.1
*To*: mathgroup at smc.vnet.net
*Subject*: [mg55156] Re: [mg55150] Re: [mg55125] Re: [mg55107] Weird behavior of NumberForm in ver 5.1
*From*: Bob Hanlon <hanlonr at cox.net>
*Date*: Tue, 15 Mar 2005 00:21:38 -0500 (EST)
*Reply-to*: hanlonr at cox.net
*Sender*: owner-wri-mathgroup at wolfram.com
NumberForm[{0.073808836682`30,0.794740579742`30},5]
{0.073809,0.794740000000000000000000000000}
Alternatives to making NumberForm listable are
NumberForm[#,5]&/@{0.073808836682`30,0.794740579742`30}
{0.073809,0.79474}
Thread[NumberForm[{0.073808836682`30,0.794740579742`30},5]]
{0.073809,0.79474}
Bob Hanlon
>
> From: yehuda ben-shimol <bsyehuda at gmail.com>
To: mathgroup at smc.vnet.net
> Date: 2005/03/14 Mon AM 03:43:53 EST
> To: mathgroup at smc.vnet.net
> Subject: [mg55156] [mg55150] Re: [mg55125] Re: [mg55107] Weird behavior of
NumberForm in ver 5.1
>
> 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: Re: Plotting a super ellipse**
Next by Date:
**Combination**
Previous by thread:
**Re: Re: Weird behavior of NumberForm in ver 5.1**
Next by thread:
**Re: Weird behavior of NumberForm in ver 5.1**
| |