<div dir="ltr">I do this and there's no quote marks. Try:<div><br></div><div><span style="font-size:12.8px">BUFratio=BUFawips/BUFqpe</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 5, 2017 at 10:53 AM, Matt Bunkers - NWS Rapid City <span dir="ltr"><<a href="mailto:matthew.bunkers@noaa.gov" target="_blank">matthew.bunkers@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I have a text file with numbers that I'm reading into GrADS and then I want to perform calculations with them. However, the numbers I'm reading won't work and I get an error that says I have non-numeric args to a numeric operations, even though when I print my variable it shows 2.19.</div><div><br></div><div>I've tried both of these options:</div><div><br></div><div>'define BUFratio='BUFawips'/'BUFqpe''<br></div><div>BUFratio='BUFawips'/'BUFqpe'<br></div><div><br></div><div>Is there a command I can use to convert my "2.19" string to a number that can be used in calculations?</div><div><br></div><div>Thanks,<br></div><div><br></div><div>-- Matt</div><div><br></div></div>
<br>______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>