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 #88049 is a reply to message #88048] Fri, 14 March 2014 09:16 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Norbert Hahn writes:

> 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.

That's what I told him. He is not satisfied. :-(

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[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: Fri Oct 10 14:16:30 PDT 2025

Total time taken to generate the page: 0.64122 seconds