<div dir="ltr"><div>Use the math script functions (<a href="http://www.iges.org/grads/gadoc/mathfunctions.html">http://www.iges.org/grads/gadoc/mathfunctions.html</a>), in particular, math_format(). Use a C-language style format statement. For your case, something like &#39;%3.1f&#39; or &#39;%4.2f&#39; (make sure to include the quotes) would give you what you want.<br><br></div>Jeff Duda<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 15, 2015 at 7:14 PM, Thomas Robinson <span dir="ltr">&lt;<a href="mailto:ter@hawaii.edu" target="_blank">ter@hawaii.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Aloha GrADS Users, <div><br></div><div>I am displaying my maximum values on a plot where they occur.  The values are all real numbers, so they are like 6.92051, 12.048, etc.  They seem to be 7 characters long at the most. My script code looks like this:</div><div><br></div><div>&#39;set string 1 t1 8.5&#39;</div><div>&#39;draw string &#39;xx&#39; &#39;yy&#39; &#39;val</div><div><br></div><div>where xx and yy are the coordinates where I want to plot and val is the value that I&#39;m plotting.  </div><div><br></div><div>What I want to do is have grads plot 6.9 or 12.0 instead of 6.92051 or 12.048.  Is there a way to specify how many characters of a string I display, or restrict my values to display only one digit after the decimal point?  I would settle for 6.92 if I had to display 4 characters.</div><div><br></div><div>Thanks for the help,</div><div>Tom</div><span class="HOEnZb"><font color="#888888"><div><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr">Tom Robinson<br>Treasurer - Graduate Student Organization <br>Secretary - Student Athletic Fee Committee <br>Graduate Student - Department of Atmospheric Science <br></div></div></div></div>
</div></font></span></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br></div>
</div>