comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: !pi: Stored as a float
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: !pi: Stored as a float [message #28471] Wed, 12 December 2001 13:01
Paul van Delst is currently offline  Paul van Delst
Messages: 364
Registered: March 1997
Senior Member
Andy Loughe wrote:
>
> Being stored as a float, the !pi system variable is accurate
> to about the 6th decimal place.

Or you could use !dpi:

IDL> print, !dpi, format='(f25.23)'
3.14159265358979311599796
IDL> print, size(!dpi, /type)
5


> IDL> print, !mypi, format='(f25.23)'
> 3.14159265358979311599796
> 3.14159265358979323846264338327950288419716939937510 <- joyofpi.com


paulv

--
Paul van Delst Religious and cultural
CIMSS @ NOAA/NCEP purity is a fundamentalist
Ph: (301)763-8000 x7274 fantasy
Fax:(301)763-8545 V.S.Naipaul
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: !pi: Stored as a float
Next Topic: Array indexing "Feature"

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:06:17 PDT 2025

Total time taken to generate the page: 0.00576 seconds