CGDBLTOSTR
This is a program for converting a double precision numerical value
to a string that maintains the 14 double-precision significant digits.
Categories
Utilities
Returns
A string value with the appropriate number of significant digits is returned.
Params
value: in, required
A double-precision or floating point value that is to be converted to a string.
Examples
Here is how to use this program::
IDL> Print, cgDblToStr(54.84392095433821d)
54.843920954338
Author
FANNING SOFTWARE CONSULTING::
David W. Fanning
1645 Sheely Drive
Fort Collins, CO 80526 USA
Phone: 970-221-0438
E-mail: david@idlcoyote.com
Coyote's Guide to IDL Programming: http://www.idlcoyote.com
History
Change History::
Written by BioPhys and offered to the IDL newsgroup, 7 November 2005.
Slightly modified and renamed by David Fanning, 30 November, 2005.
Retired as DblToStr and reincarnated it as cgDblToStr. 30 November, 2012. DWF.
Copyright
Copyright (c) 2005-2012, Fanning Software Consulting, Inc.