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

Home » Public Forums » archive » Re: Floating Array Shows no numbers after the dot
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: Floating Array Shows no numbers after the dot [message #29457 is a reply to message #29455] Wed, 20 February 2002 01:32 Go to previous messageGo to previous message
Martin Downing is currently offline  Martin Downing
Messages: 136
Registered: September 1998
Senior Member
"Emmler, Oliver" <oemmler@ix.urz.uni-heidelberg.de> wrote in message
news:a4tre2$lgv$1@news.urz.uni-heidelberg.de...
> Hi,
>
> I tried the following:
>
> Array = FLTARR[15]
> Time = 123456.123456
> Array[0] = Time
> Print, Array[0]
>
> All numbers after the colon are gone.
>
> Can anyone help ?
> Do i have to use DCOMPLEXARR ?
> Is this problem caused by Pre-Formatting due to the system ?
>
Hi Oliver,

The answer is simple - the FLOAT type which you are using has only 6
significant digits, whereas type DOUBLE has a couple more, and COMPLEX is
for complex numbers :)
[hmm - as an aside, does anyone know why DOUBLE can only store 2 more digits
cf. FLOAT considering it uses 4 extra bytes which is enough for a 10 digit
LONG ?]

Martin
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Color problems with 5.5/RH linux 7.1
Next Topic: Creating embedded license .sav files

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

Current Time: Wed Oct 08 15:47:19 PDT 2025

Total time taken to generate the page: 0.16156 seconds