About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2006

URL: http://cxc.harvard.edu/ciao3.4/set_float_format.tm.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 set_float_format Context: slangrtl

Synopsis

Set the format for printing floating point values.

Syntax

set_float_format (String_Type fmt)

Description

The set_float_format function is used to set the floating point format to be used when floating point numbers are printed. The routines that use this are the traceback routines and the string function. The default value is "%f"

Example

     s = string (PI);                %  --> s = "3.14159"
     set_float_format ("%16.10f");
     s = string (PI);                %  --> s = "3.1415926536"
     set_float_format ("%10.6e");
     s = string (PI);                %  --> s = "3.141593e+00"
Hardcopy (PDF): A4 | Letter
Last modified: December 2006



The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.