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

Home » Public Forums » archive » Re: decimal numbers
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: decimal numbers [message #70915 is a reply to message #70914] Tue, 11 May 2010 16:25 Go to previous message
R.G.Stockwell is currently offline  R.G.Stockwell
Messages: 163
Registered: October 2004
Senior Member
"fgg" <fabioguimaraesgoncalves@gmail.com> wrote in message
news:a43a5251-e8a0-45d2-a283-29388766de37@a2g2000prd.googleg roups.com...
> Hello,
>
> If
>
> IDL> a=358983
>
> how can I get a "b" = 0.358983? (that is, b = a/10^6)?... Why do I get
> the weird result below when I change "a" to double and divide it by
> 10^6?
>
> IDL> b=double(a)/10^6
> IDL> print, b
> 21.166450
>
> Thank you!

try this.

IDL> print,10^6
16960
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: decimal numbers
Next Topic: Re: SST data

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

Current Time: Sat Oct 11 14:37:53 PDT 2025

Total time taken to generate the page: 1.83634 seconds