Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: On default numerical precision

  • To: mathgroup at smc.vnet.net
  • Subject: [mg90675] Re: On default numerical precision
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Sat, 19 Jul 2008 04:48:01 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <g5pj07$qbc$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

$Post = ( # /. a_Real :> NumberForm[a, {32, 16}]) &;

Regards
   Jens

sergio_r at mail.com wrote:
> Hello all,
> 
> I am wonderin on how to change the mathematica default printing
> precision, so I don't have to type on any defined constant the
> required  precision, like " `30 "  in:
> 
> In[1]:= a=2.3`30; b=2.1`30;
> 
> In[2]:= a*b
> 
> Out[2]= 4.83000000000000000000000000000
> 
> I would like  to be able to do:
> 
> a=2.3; b=2.1; and obtain
> a*b = 4.83000000000000000000000000000
> 
> Regards,
> 
> Sergio
> PS. Apparently the internal variable $Pre could be set to do that, but
> the respective help page [  http://reference.wolfram.com/mathematica/ref/$Pre.html
>    ] is not clear about how to do that.
> 


  • Prev by Date: Re: Save as PDF with color
  • Next by Date: Re: suppressing background color when printing
  • Previous by thread: On default numerical precision
  • Next by thread: Re: On default numerical precision