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

Home » Public Forums » archive » Strange Bug with numeric double constants
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: Strange Bug with numeric double constants [message #14742 is a reply to message #14711] Thu, 25 March 1999 00:00 Go to previous messageGo to previous message
badastro is currently offline  badastro
Messages: 7
Registered: August 1998
Junior Member
In comp.lang.idl-pvwave Alex Schuster <alex@rosa.mpin-koeln.mpg.de> wrote:
> Hi!

> I just experienced some weird IDL behaviour:

> IDL> help, 1.0d+2.0d

> help, 1.0d+2.0d
> ^
> % Syntax error.
> IDL> help, 1d+2d

> help, 1d+2d
> ^
> % Syntax error.

> Strange, isn't it?

Nope. ;-) IDL expects that what follows the 'd' is the exponent,
like 100 being 1.d2 or 1.d+2. If you put a 'd' after the 2, it doesn't
recognize it as being part of the exponent, so it barfs. The same
things happens if you use an 'e' instead of 'd'. It doesn't happen
with byte numbers because the 'b' doesn't precede an exponent.

* * * * * The Bad Astronomer * * * *

Phil Plait badastro@badastronomy.com
The Bad Astronomy Web Page: http://www.badastronomy.com
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Can't create pixmap
Next Topic: Re: help: Type & size checking

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

Current Time: Sat Nov 29 00:20:47 PST 2025

Total time taken to generate the page: 1.27581 seconds