.\
cgdbltostr.pro
top cgDBLTOSTR
Utilities
result = cgDBLTOSTR(value)
This is a program for converting a double precision numerical value to a string that maintains the 14 double-precision significant digits.
Return value
A string value with the appropriate number of significant digits is returned.
Parameters
- 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 information
- 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
- Copyright:
Copyright (c) 2005-2012, Fanning Software Consulting, Inc.
- 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.
File attributes
Modification date: | Fri Mar 27 11:07:37 2015 |
Lines: | 132 |
Docformat: | rst rst |