[gradsusr] %e format specifier

Jennifer M Adams jadams21 at gmu.edu
Fri Feb 5 08:31:32 EST 2016


Jeff,
The 2-digit exponent is part of the C standard. Here’s what I found after a quick search on stackoverflow.com<http://stackoverflow.com>: "The exponent always contains at least two digits, and only as many more digits as necessary to represent the exponent.” So, the answer to your question is … no.
—Jennifer

On Feb 4, 2016, at 5:49 PM, Jeff Duda <jeffduda319 at gmail.com<mailto:jeffduda319 at gmail.com>> wrote:

How should I manipulate the %e specifier in Grads so that it will only print 1 digit after the exponential (i.e., the order of magnitude). I have tried things like %.0e1, but that last digit seems to have no impact on the length of the order of magnitude portion of the string. The default is two digits. In other words, I want to change this type of tick marking behavior:

1.5e-02

to 1.5e-2

Can this be done?

Jeff Duda

--
Jeff Duda
Graduate research assistant
University of Oklahoma School of Meteorology
Center for Analysis and Prediction of Storms
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr

--
Jennifer Miletta Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
George Mason University



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20160205/3b35100e/attachment.html 


More information about the gradsusr mailing list