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

Home » Public Forums » archive » Re: fsc_Inputfield feature request
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: fsc_Inputfield feature request [message #82219] Fri, 30 November 2012 05:20 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
markbates writes:

> OK, I looked into the code and it seems like a pretty simple fix. The
> routine adding the 'd' is the DBLTOSTR.pro from the Coyote library,
> and the d is there for the general case when scientific notation is
> used. I think I've fixed the problem with the unusual output when
> there is no exponent by adding one line of code just before the final
> output string is generated. I added the line:
>
> if indx eq '' then typeExt = ''
>
> which removes the type extension (d) when there is no exponent text.
> The modified DBLTOSTR routine is below. David, what do you think?

Works for me. Thanks for doing the leg work. :-)

Generally, when I have to open these old programs up for
some reason, I retire them, convert the documentation to
IDL-Doc style, and reincarnate them with a "cg" prefix
to mark them as a Coyote Library routine. I'll do that
with this one as well, so it might take a day or so
to get back into the Library.

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Previous Topic: fsc_Inputfield feature request
Next Topic: Re: x-axis label in plot procedure

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

Current Time: Wed Oct 08 15:10:52 PDT 2025

Total time taken to generate the page: 0.00407 seconds