Get rid of awk notation

echo 0.633588 1875 | awk '{print $1 * $2 * 1024}'

is there a better way to run the above command? it keeps printing out in notation and i do not want that at all.

when i run the above, i get:

1.21649e+06

OS: linux
language:bash

echo 0.633588 1875 | awk '{printf "%d\n", $1 * $2 * 1024}'
1216488

OR

echo 0.633588 1875 | awk '{printf "%0.2f\n", $1 * $2 * 1024}'
1216488.96
1 Like