Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1990
*January
*February
*March
*April
*May
*June
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1990

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

Search the Archive

Re: SetPrecision[]

  • To: mathgroup at yoda.ncsa.uiuc.edu
  • Subject: Re: SetPrecision[]
  • From: uunet!renoir.Berkeley.EDU!fateman (Richard Fateman)
  • Date: Tue, 3 Apr 90 07:59:17 -0700

Actually, SetPrecision[1.2,30] --> 1.2000000 <30 digits> IS possible,
and here's how.  Treat 1.2 as an input form, like  RealNumber[1,2].
Don't convert it to machine precision until you do arithmetic on
it.

This is a total hack, and only serves to maintain the mistaken illusion
that Mathematica does decimal arithmetic, and perpetuates the myth that
there is something inherently correct about decimal input or output
.... but, for example, I could easily put the hack above into my own
Mathematica-like parser written in Common Lisp.
 -- Richard Fateman



  • Prev by Date: precision and accuracy
  • Next by Date: The Mathematica Journal
  • Previous by thread: SetPrecision[]
  • Next by thread: precision and accuracy