MathGroup Archive 2007

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

Search the Archive

Re: approximation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg79457] Re: [mg79431] approximation
  • From: "Thomas Dowling" <thomasgdowling at gmail.com>
  • Date: Fri, 27 Jul 2007 05:50:43 -0400 (EDT)
  • References: <200707261029.GAA09542@smc.vnet.net>

a = 1.56068376362920545943;
Print["The value is : ", N[a, 7]];

N[expr] gives the numeric value of expr

Hope this is what you want ...

On 7/26/07, giorgioruaro at gmail.com <giorgioruaro at gmail.com> wrote:
>
> hello. My question is very very easy.
> I have got a variabile as "a" and i want to print his approximated
> value with n decimal digit.
>
> a=1.56068376362920545943;
> Print["The value is : ", 1.6];
> or
> Print["The value is : ", 1.56];
>
> Is there anyone who can help me ?
> thanks
> Giorgio
>
>
>


  • Prev by Date: Re: approximation
  • Next by Date: ScatterPlot3D -> ListPointPlot3D
  • Previous by thread: approximation
  • Next by thread: RE: approximation