bcmul

bcmul

package main

import (
	"fmt"
	"github.com/shopspring/decimal"
)

func main() {
	price, err := decimal.NewFromString("136.02")
	if err != nil {
		panic(err)
	}

	subtotal := price.Mul(quantity)
	quantity := decimal.NewFromFloat(3)
	fmt.Println("Subtotal:", subtotal)                      // Subtotal: 408.06
}