RE: approximation
- To: mathgroup at smc.vnet.net
- Subject: [mg79449] RE: [mg79431] approximation
- From: Robert Pigeon <robert.pigeon at videotron.ca>
- Date: Fri, 27 Jul 2007 05:46:34 -0400 (EDT)
- References: <200707261029.GAA09542@smc.vnet.net>
Hi Giorgio, I asked the same question a few months ago and I got some answers. Here is what I am using (Mathematica 5.2, but works also with 6): nf2[n_]:=NumberForm[n,{16,2},NumberPadding -> {"", "0"}]; This will give you 2 digits, if you need something different change {16,2} to what you need. In Mathematica 6 you can specify the same thing in Edit -> Preferences -> Appearance -> Numbers -> Formatting and change the "Display precision" But you have to change this every time you want to modify your output. Hope this help, Robert -----Original Message----- From: giorgioruaro at gmail.com [mailto:giorgioruaro at gmail.com] Sent: July-26-07 06:29 To: mathgroup at smc.vnet.net Subject: [mg79449] [mg79431] approximation 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
- References:
- approximation
- From: giorgioruaro@gmail.com
- approximation