[gradsusr] Alterar quantidade de caracters de uma media global ...
Arlindo da Silva
dasilva at alum.mit.edu
Tue Dec 6 23:05:50 EST 2011
2011/12/6 <luiz.ferreira at cptec.inpe.br>
> Ola gostaria de saber se alguem pode me ajudar , fiz uma media global
> ..('d aave(p05m,g)') e obtive o seguinte resultado .. UKM 0.10 -
> 2.38291 kg/m2/d gostaria de alterar o "2.38291" para menos caracter
> para uns 3 , procurei na internet mais nao achei metodos , se alguem
> puder me ajudar ..
>
I am assuming you are doing this within a gs script. In this case, grab the
result and use the function
math_format()<http://grads.iges.org/grads/gadoc/mathfunctions.html>to
write the result with fewer decimal places, for example
'd aave(p05m,global)'
value = subwrd(result,4)
say math_format('%5.3f',value)
BTW, next time use google
translate<http://translate.google.com/?hl=en&tab=wT#pt|en|>to have
your question translated to English...
Arlindo
--
Arlindo da Silva
dasilva at alum.mit.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20111206/44c6c38b/attachment-0003.html
More information about the gradsusr
mailing list