[gradsusr] Rounding Numbers With Decimals

Stephen McMillan smcmillan at planalytics.com
Thu Nov 7 08:13:04 EST 2013


Aaron,

If you're wanting to change the numbers displayed on screen (as with 'set
gxout grid'), then use 'set dignum ...', e.g., 'set dignum 0' to drop the
decimals before displaying the variable.

If you're wanting to change the numbers using 'set gxout print' then use
'set prnopts..', e.g., 'set prnopts %0.0f'' will drop the decimals when you
display the variable.

Hope this helps...
Stephen Mc


On Wed, Nov 6, 2013 at 11:08 PM, Perry, Aaron @ LSC <Aaron.Perry at lsc.vsc.edu
> wrote:

>  Good Evening Everyone,
>
> I'm using OpenGrADS and I want to change MSLP values from say 1018.60mb to
> just 1018mb; same thing for temperatures. Is there a way that I can do
> this? I know that GrADS has a bunch of math functions but, I'm not sure
> which one to use and how to tell it to reduce ANY displayed values with
> decimals in them.
>
>    Onward and Upward,
>
> Aaron Perry
> Boston, MA
> Mobile: 617-780-4312
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>

***************************************************
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.
***************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20131107/7979952e/attachment.html 


More information about the gradsusr mailing list