[gradsusr] Convert string to numeric?
Matt Bunkers - NWS Rapid City
matthew.bunkers at noaa.gov
Sat Aug 5 16:53:47 EDT 2017
Hi,
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.
I've tried both of these options:
'define BUFratio='BUFawips'/'BUFqpe''
BUFratio='BUFawips'/'BUFqpe'
Is there a command I can use to convert my "2.19" string to a number that
can be used in calculations?
Thanks,
-- Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20170805/bd812ec0/attachment.html
More information about the gradsusr
mailing list