MathGroup Archive 1997

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

Search the Archive

Re: Setting precision in binary digits?

  • To: mathgroup at
  • Subject: [mg8999] Re: [mg8947] Setting precision in binary digits?
  • From: David Withoff <withoff>
  • Date: Tue, 7 Oct 1997 03:35:46 -0400
  • Sender: owner-wri-mathgroup at

> Hello,
> I would like to specify the precision of my numbers in binary digits
> rather than decimal digits. Is there any way of doing this?
> Many thanks,
> Fergal.
> --
> ====================================================================
> Fergal Shevlin                    Phone: +353-1-6081209 Fax: 6772204
> Dept. of Computer Science            
> Trinity College, Dublin 2, Ireland.         Fergal.Shevlin at

If you enter the digits in binary notation, then you can enter the
number of binary digits of precision using notation such as

In[1]:= 2^^1101101.11101011100010101001011010110101111`17.3

Out[1]= 109.92

which constructs a number with 17.3 binary digits of precision.

You could also do calculations like

In[4]:= N[Pi, 63.1 Log[10, 2]]

Out[4]= 3.14159265358979324

which computes Pi to a precision of 63.1 binary digits (about 19
decimal digits).

Dave Withoff
Wolfram Research

  • Prev by Date: Converting FORTRAN Code into MMA3.0
  • Next by Date: Re: List of lists in MultipleListPlot
  • Previous by thread: Setting precision in binary digits?
  • Next by thread: Re: Setting precision in binary digits?