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

Home » Public Forums » archive » DOUBLE trouble
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
DOUBLE trouble [message #14558] Tue, 09 March 1999 00:00
Jacco de Zwart is currently offline  Jacco de Zwart
Messages: 4
Registered: May 1998
Junior Member
Hi,

Can someone please repeat and/or explain the IDL DOUBLE() results below?
This is a copy of an IDL 5.2 session on a Silicon Graphics O2 running
IRIX 6.3, IDL 5.2 on a Digital PW 500a running Digital UNIX 4.0D gave
the same results... Thanks a lot for the help,

Jacco


PS Please remove the .NOSPAM from my mail address when replying.


IDL> a=3.
IDL> print,a
3.00000
IDL> print,double(a)
3.0000000
IDL> b=3.1
IDL> print,b
3.10000
IDL> print,double(b)
3.0999999
IDL> c=fltarr(1)
IDL> c[0]=2.9
IDL> print,c
2.90000
IDL> print,double(c)
2.9000001
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: DOUBLE trouble
Next Topic: IDL and QuickTime?

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

Current Time: Fri Oct 10 18:33:46 PDT 2025

Total time taken to generate the page: 1.44099 seconds