Quantcast
Viewing all articles
Browse latest Browse all 5

Answer by mikeserv for Convert floating point numbers to decimal numbers

{ sed 's/ /+/3' | xargs printf '%G% G% G\n'; } <in >out

1 1 1423
1 2 1589
1 3 85000
1 4 8900
1 5 8796

You'll wanna play around with the %G precision flags if the numbers get much larger than that.


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>