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

Home » Public Forums » archive » Re: Numbers from nowhere?
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: Numbers from nowhere? [message #58726 is a reply to message #58725] Sun, 17 February 2008 12:19 Go to previous messageGo to previous message
elwood is currently offline  elwood
Messages: 23
Registered: February 2007
Junior Member
I'm glad that the Coyotes have something useful to do, besides keeping
me awake
all night in the Anza Borrego desert (it was wonderful to hear them
all night actually!)

But my question is more pointed:
if you assign x=3.3
and you know apriori that the floating point data type
will not have enough bits to store this number precisely,
why does "print" show this number as 3.3?

Is it because it is rounding off with some kind of algorithm?
Or am I misinterpreting how this number is being stored?

Curious,
Elisha

On Feb 15, 4:51 pm, David Fanning <n...@dfanning.com> wrote:
> Paul van Delst writes:
>> Cosmic rays randomly flipping the bits beyond the stated precision?
>
> Teams of coyotes, given jobs like this to satisfy
> their playful nature, but still keep them off the
> street, more likely.
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming (www.dfanning.com)
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Labeling the x-axis with a non standard time string
Next Topic: idl format codes and output files

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

Current Time: Wed Oct 08 19:35:25 PDT 2025

Total time taken to generate the page: 0.00405 seconds