[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strange Bug with numeric double constants
- Subject: Re: Strange Bug with numeric double constants
- From: Martin Schultz <mgs(at)io.harvard.edu>
- Date: Mon, 22 Mar 1999 12:12:58 -0500
- Newsgroups: comp.lang.idl-pvwave
- Organization: Dept. for Engineering&Applied Sciences,Harvard University
- References: <36F645F2.45DB@rosa.mpin-koeln.mpg.de>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:14029
Alex Schuster wrote:
>
> Hi!
>
> I just experienced some weird IDL behaviour:
>
> IDL> help, 1.0d+2.0d
>
> help, 1.0d+2.0d
> ^
> % Syntax error.
>[...]
I'd just say it's normal. Since '+' or '-' are two allowed characters
in the exponential, IDL wants to interpret everything after '+' as the
exponent, and you are limited to integer exponents here.
Just for fun: if you try
help,1.d*2.d it will work!
Martin.
--
-------------------------------------------------------------------
Dr. Martin Schultz
Department for Engineering&Applied Sciences, Harvard University
109 Pierce Hall, 29 Oxford St., Cambridge, MA-02138, USA
phone: (617)-496-8318
fax : (617)-495-4551
e-mail: mgs@io.harvard.edu
Internet-homepage: http://www-as.harvard.edu/people/staff/mgs/
-------------------------------------------------------------------