[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: print, long(1.0e10)
- Subject: Re: print, long(1.0e10)
- From: "R.Bauer" <R.Bauer(at)fz-juelich.de>
- Date: Tue, 10 Aug 1999 07:55:24 +0100
- Newsgroups: comp.lang.idl-pvwave
- Organization: Forschungszentrum Juelich
- References: <37A7617E.9F5DD25D@seadas.gsfc.nasa.gov>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:16059
Gary Fu wrote:
> Hi,
>
> I got different results from the following example on SGI IRIX and PC
> Linux:
> a = 1.0e10
> b = long(a)
> print, b ; 2147483647 for IRIX, -2147483648 for Linux
>
Results of WIN NT
IDL> a=1.0e10
IDL> b = long(a)
IDL> print, b
1410065408
Results of AIX
IDL> a=1.0e10
IDL> b=long(a)
% Program caused arithmetic error: Floating illegal operand
% Program caused arithmetic error: Conversion to integer error
IDL> print,b
2147483647
R.Bauer