Ejemplo n.º 1
0
        // Multiplies two Decimal values.
        //
        public static Decimal Multiply(Decimal d1, Decimal d2)
        {
            Decimal decRes;

            DecCalc.VarDecMul(ref d1, ref d2, out decRes);
            return(decRes);
        }
Ejemplo n.º 2
0
        [System.Security.SecuritySafeCritical]  // auto-generated
        public static Decimal Multiply(Decimal d1, Decimal d2)
        {
            Decimal decRes = new Decimal();

            if (DecCalc.VarDecMul(ref d1, ref d2, out decRes) < 0)
            {
                throw new OverflowException(SR.Overflow_Decimal);
            }

            d1 = decRes;
            return(d1);
        }
Ejemplo n.º 3
0
 // Multiplies two Decimal values.
 //
 public static Decimal Multiply(Decimal d1, Decimal d2)
 {
     DecCalc.VarDecMul(ref d1, ref d2);
     return(d1);
 }