package utils import ( "fmt" "strconv" ) func Decimal(num float64) float64 { num, _ = strconv.ParseFloat(fmt.Sprintf("%.2f", num), 64) return num }