package main import "fmt" func main() { n := fmt.Sprintf("%.2f", 1.00000027e+06) fmt.Println(n) }