<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 &lt;mcroke@AIRDAT.COM&gt;</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 &nbsp;Everyone,</font><br><font size=3>&nbsp;</font><br><font size=2 face="Arial">I am new to GrADS &nbsp;and&nbsp;am trying
to write a file that has 10 columns of temperature readings &nbsp;for over
600 times.&nbsp; The problem I am running into is controlling how far &nbsp;the
number extends beyond the decimal point.&nbsp; I would like there to only
be &nbsp;two digits.&nbsp; I tried using 'set dignum 2', but this didn't
work, and from &nbsp;what I can tell it is mainly used for plotting.</font><br><font size=3>&nbsp;</font><br><font size=2 face="Arial">My write line is as &nbsp;follows: f=write
(test.dat, &nbsp;ds'&nbsp;'hs'&nbsp;'df'&nbsp;'hf'&nbsp;0'fff'&nbsp;'TF'&nbsp;'TF1'&nbsp;'TF2'&nbsp;'TF3'&nbsp;'TF4'&nbsp;'TF5'&nbsp;'TF6'&nbsp;'TF7'&nbsp;'TF8'&nbsp;'TF9,append)</font><br><font size=3>&nbsp;</font><br><font size=2 face="Arial">Where all the TF's &nbsp;are the temperatures
that I would like to only have 2 numbers after the decimal &nbsp;point.</font><br><font size=3>&nbsp;</font><br><font size=2 face="Arial">Is there some format &nbsp;statement I can
put in that would fix this problem?</font><br><font size=3>&nbsp;</font><br><font size=2 face="Arial">Thanks for your &nbsp;help!</font><br><font size=3>&nbsp;</font><br><font size=2 face="Arial">Sincerely,</font><br><font size=3>&nbsp;</font><br><font size=2 face="Arial">Meredith</font><br><font size=3>&nbsp;</font><br><font size=3>&nbsp;</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>