MathGroup Archive 2007

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

Search the Archive

Re: approximation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg79458] Re: [mg79431] approximation
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Fri, 27 Jul 2007 05:51:14 -0400 (EDT)
  • Reply-to: hanlonr at cox.net

a = 1.56068376362920545943;

Table[
  Print["The value is: ",
   NumberForm[a, {n, n - 1}]],
  {n, 20}];


Bob Hanlon

---- 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: defining random variable with piecewise-continuous PDF Mathematica 6
  • Next by Date: Re: approximation
  • Previous by thread: Re: approximation
  • Next by thread: Re: approximation