package tools import ( "fmt" "strconv" ) func Money(m float64) float64 { f, _ := strconv.ParseFloat(fmt.Sprintf("%.2f", m), 64) return f }