Re: approximation
- To: mathgroup at smc.vnet.net
- Subject: [mg79468] Re: approximation
- From: Steven Siew <siewsk at bp.com>
- Date: Fri, 27 Jul 2007 05:56:25 -0400 (EDT)
- References: <f89t1u$9af$1@smc.vnet.net>
On Jul 26, 8:29 pm, giorgioru... 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 a=1.56068376362920545943; Print["var a has value of ",N[a,2]] var a has value of 1.6