MathGroup Archive 2007

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

Search the Archive

Re: approximation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg79492] Re: approximation
  • From: Albert <awnl at arcor.net>
  • Date: Fri, 27 Jul 2007 06:08:53 -0400 (EDT)
  • References: <f89t1u$9af$1@smc.vnet.net>

Hi,

> 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 ?

Does this help?

Print["The value is : ", NumberForm[a, {5, 1}]]
Print["The value is : ", NumberForm[a, {5, 2}]]

albert


  • Prev by Date: MathML applications
  • Next by Date: Mathematica And OpenOffice Clac
  • Previous by thread: Re: approximation
  • Next by thread: Re: approximation