Re: Grumbling about setting double precision [message #78841 is a reply to message #78775] |
Wed, 21 December 2011 17:34   |
wlandsman
Messages: 743 Registered: June 2000
|
Senior Member |
|
|
On Wednesday, December 21, 2011 9:20:24 AM UTC-5, Kenneth P. Bowman wrote:
>
> You could replace "," with "D," and replace "]" with "D]".
>
> That should only take a minute or two with find and replace.
>
Thanks, but the problem in my code would be skipping the integer vectors (mixed in with the double precision vectors), which I don't want to be changed. I am sure there is a way to make my editor skip commas after integers, but I suspect that would take me more time to figure out than manually editing the file.
Both MATLAB and Python use double precision as their default data type. Because IDL has been more of an image processing language, it originally made sense for it to have floating point as a default. But with the increase in computer memory capabilities, I think it now makes sense to have a new DEFFLT64 parameter to COMPILE_OPT which, in analogy to DEFINT32, would make 64 bit floating point the default.
|
|
|