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

Home » Public Forums » archive » Pi is Rotten?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Pi is Rotten? [message #88048 is a reply to message #88044] Fri, 14 March 2014 09:08 Go to previous messageGo to previous message
Norbert Hahn is currently offline  Norbert Hahn
Messages: 46
Registered: May 2003
Member
David Fanning <news@idlcoyote.com> wrote:

> Folks,
>
> Perhaps because today is Pi Day:
>
> http://bit.ly/1lDkQi4
>
> Andrew Cools alerts me to an IDL problem of utmost importance. I refer,
> of course, to an inexplicable problem with IDL's version of Pi:
>
> IDL> print, !dpi, format='(f0.18)'
> 3.1415926535897931

Hm, !dpi is a double precision number. It has about 16 useful digits.
Due to rounding the last digit is always uncertain.

Norbert
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Need help with map projection conversion in IDL or ENVI
Next Topic: adding legend to overlapping cghistoplot histograms

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

Current Time: Sat Oct 11 17:27:55 PDT 2025

Total time taken to generate the page: 1.11804 seconds