Printing two digits after decimal in go

decimal, go

Solution

You can write:

fmt.Printf("%.2f", 1.22225)

(See http://golang.org/pkg/fmt/.)

Problem

I want to print two digits after decimal after rounding in GO language.. e.g 1.222225 should be printed as 1.22 1.356 should be printed as 1.36 How can i do it?

Original source