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

Home » Public Forums » archive » Re: double precision?
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: double precision? [message #49716 is a reply to message #49697] Thu, 10 August 2006 13:35 Go to previous messageGo to previous message
news.qwest.net is currently offline  news.qwest.net
Messages: 137
Registered: September 2005
Senior Member
<adisn123@yahoo.com> wrote in message
news:1155241088.452911.315540@i3g2000cwc.googlegroups.com...
> Hi,
>
> The value that I want to keep in a variable, a, is
> 1.24500000476837.
> After I define as
> IDL> a = 1.24500000476837
> then, print, a
> IDL> print, a
> IDL> 1.2450000
> so, I tried
> IDL> a = 1.24500000476837d ;; to make it as a double precision, but
> IDL prints
> IDL> help, a
> A DOUBLE = 1.2450000
> IDL> print, a
> 1.2450000
>
>
> How can I keep all those decimal points?
> I thought double precision can express up to 14 decimal places of
> significant points?


Try
IDL> print,a,format='(f50.25)'
1.2450000047683700000000000

Cheers,
bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: slow processing of my k-nearest neighour code
Next Topic: Postscript and Object Graphics, special characters

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

Current Time: Sun Oct 12 09:44:44 PDT 2025

Total time taken to generate the page: 0.72371 seconds