<br><font size=2 face="sans-serif">Try this Meredith:</font><br><br><font size=2 face="Arial">tmp=math_format('%0.2f',tmp)</font><font size=2 face="sans-serif">where tmp is your temperature variable.</font><br><br><font size=2 face="sans-serif">Good luck--</font><br><font size=2 face="sans-serif">Stephen McMillan</font><br><br><br><br><table width=100%><tr valign=top><td width=40%><font size=1 face="sans-serif"><b>Meredith Croke <mcroke@AIRDAT.COM></b></font><br><font size=1 face="sans-serif">Sent by: GRADSUSR@LIST.CINECA.IT</font><p><font size=1 face="sans-serif">02/06/2007 11:35 AM</font><table border><tr valign=top><td bgcolor=white><div align=center><font size=1 face="sans-serif">Please respond to<br>GRADSUSR@LIST.CINECA.IT</font></div></table><br><td width=59%><table width=100%><tr valign=top><td><div align=right><font size=1 face="sans-serif">To</font></div><td><font size=1 face="sans-serif">GRADSUSR@LIST.CINECA.IT</font><tr valign=top><td><div align=right><font size=1 face="sans-serif">cc</font></div><td><tr valign=top><td><div align=right><font size=1 face="sans-serif">Subject</font></div><td><font size=1 face="sans-serif">Using fwrite and controlling decimal
places</font></table><br><table><tr valign=top><td><td></table><br></table><br><br><font size=2 face="Arial">Hi Everyone,</font><br><font size=3> </font><br><font size=2 face="Arial">I am new to GrADS and am trying
to write a file that has 10 columns of temperature readings for over
600 times. The problem I am running into is controlling how far the
number extends beyond the decimal point. I would like there to only
be two digits. I tried using 'set dignum 2', but this didn't
work, and from what I can tell it is mainly used for plotting.</font><br><font size=3> </font><br><font size=2 face="Arial">My write line is as follows: f=write
(test.dat, ds' 'hs' 'df' 'hf' 0'fff' 'TF' 'TF1' 'TF2' 'TF3' 'TF4' 'TF5' 'TF6' 'TF7' 'TF8' 'TF9,append)</font><br><font size=3> </font><br><font size=2 face="Arial">Where all the TF's are the temperatures
that I would like to only have 2 numbers after the decimal point.</font><br><font size=3> </font><br><font size=2 face="Arial">Is there some format statement I can
put in that would fix this problem?</font><br><font size=3> </font><br><font size=2 face="Arial">Thanks for your help!</font><br><font size=3> </font><br><font size=2 face="Arial">Sincerely,</font><br><font size=3> </font><br><font size=2 face="Arial">Meredith</font><br><font size=3> </font><br><font size=3> </font><br><BR>
<BR>
***************************************************<BR>
The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain information that is privileged, confidential, and/or proprietary. If you are not the intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message.<BR>
***************************************************<BR>