golang sprintf in engineer format package efmt // import "github.com/Konstantin8105/efmt"
FUNCTIONS
// View float64 in engineer format func Sprint(v float64) string
Example of result
1234.57e-06 1.234568e-03 0.001235
-1234.57e-06 -1.234568e-03 -0.001235
12.3457e-03 1.234568e-02 0.012346
-12.3457e-03 -1.234568e-02 -0.012346
0.12346 1.234568e-01 0.123457
-0.12346 -1.234568e-01 -0.123457
0.00000 0.000000e+00 0.000000
1.23457 1.234568e+00 1.234568
-1.23457 -1.234568e+00 -1.234568
12.3457 1.234568e+01 12.345679
-12.3457 -1.234568e+01 -12.345679
123.457 1.234568e+02 123.456789
-123.457 -1.234568e+02 -123.456789
1234.57 1.234568e+03 1234.567890
-1234.57 -1.234568e+03 -1234.567890
12345.7 1.234568e+04 12345.678900
-12345.7 -1.234568e+04 -12345.678900
123.457e+03 1.234568e+05 123456.789000
-123.457e+03 -1.234568e+05 -123456.789000
1.23457e+06 1.234568e+06 1234567.890000
-1.23457e+06 -1.234568e+06 -1234567.890000