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

Home » Public Forums » archive » Re: converting floats to doubles
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: converting floats to doubles [message #44102] Fri, 20 May 2005 14:35 Go to previous message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
>> dblarr(n) is the same as double(fltarr(n)). The fltarr(n) will create
>> n many floating point numbers, all of which are 0. Converting all
>> these floats into doubles will yield a double array where all values
>> are 0 and this is the very same thing as dblarr(n).
>
>
> Actually I meant dindgen(n) vs. double(findgen(n)) in the first place. I
> always mix them up ... But I think I got the point.

Ah, okay. Same logic still applies.

Because doubles have the same structure as floats, but more capacity,
the set of all possible double precision values on a particular
architecture is a superset of the set of all possible single precision
(float) values on the same architecture. That, in short, was what all
my rambling before was trying to say. I have never been one to really
understand what the word "concise" means. :-)

-Mike
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ascii-template
Next Topic: Re: Catch the area outside a contour

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

Current Time: Wed Oct 08 13:49:26 PDT 2025

Total time taken to generate the page: 0.00399 seconds