Masterminds / sprig

Useful template functions for Go templates.
http://masterminds.github.io/sprig/
MIT License
4.07k stars 423 forks source link

How can I avoid getting a scientific notation in a large multiply? #380

Closed amontalban closed 11 months ago

amontalban commented 11 months ago

Hi,

I'm trying to do some math with bytes and I'm getting large numbers, for example if I do:

{{ mul 10000 10000 }}

I get:

1e+08

How can I avoid this and get 100000000 instead?

Thanks!

amontalban commented 11 months ago

I ended up doing {{ mul 10000 10000 | toJson }}