precision of pi [message #6457] |
Wed, 03 July 1996 00:00  |
Jorn Helbert
Messages: 4 Registered: July 1996
|
Junior Member |
|
|
Hi,
a simple question:
Is there any way to enhance the precision of !pi or !dpi. 5 or 8
significant digits are really not much.
cheers
jorn
--
Joern Helbert
Space and atmospheric physics group
Imperial College - London
phone: 0171 594-7898
|
|
|
|
Re: precision of pi [message #6566 is a reply to message #6457] |
Fri, 12 July 1996 00:00  |
djackson
Messages: 31 Registered: June 1993
|
Member |
|
|
In article <31DA5CAA.3D0D@ic.ac.uk>, Jorn Helbert <jorn@ic.ac.uk> wrote:
> Hi,
> a simple question:
> Is there any way to enhance the precision of !pi or !dpi. 5 or 8
> significant digits are really not much.
I think the precision is there, but these examples will show how to display it:
IDL> print,!dpi
3.1415927
IDL> print,!dpi,format="(F20.18)"
3.141592653589793100
Cheers,
-Dick
Dick Jackson djackson@ibd.nrc.ca Institute for Biodiagnostics
Opinions are mine alone. National Research Council Canada, Winnipeg
"And I told him my dream was to live for all time
In some perfect refrain, like the man who wrote 'Danny Boy'."
- Joe Jackson, from the album _Night_Music_, 1994.
|
|
|