Home  |  Delphi .net Home  |  System.Decimal  |  Multiply Method
  
Multiply  
Method  
Multiplies one Decimal value by another
Decimal Structure
System NameSpace
CF1.  Function Multiply ( ValueA : Decimal; ValueB : Decimal ) : Decimal; Static;
CF : Methods with this mark are Compact Framework Compatible
Description
Multiplies ValueA by ValueB.
 
An exception is thrown if the multiply fails.
Notes
Static methods are not methods of an object - they are simply class functions or procedures available at any time.
Microsoft MSDN Links
System
System.Decimal
 Author links

 Buy Website Traffic at
 Buywebsitetrafficexperts.com

 Buy Proxies at
 Buyproxies.io
 
 
 
A simple example
program Project1;
{$APPTYPE CONSOLE}

var
  valueA, valueB : Decimal;
  result         : Decimal;

begin
  valueA := 5.25;
  valueB := 4000;

  result := System.Decimal.Multiply(valueA, valueB);
  Console.WriteLine('valueA                      = {0}', valueA.ToString);
  Console.WriteLine('valueB                      = {0}', valueB.ToString);
  Console.WriteLine('valueA multiplied by valueB = {0}', result.ToString);

  Console.ReadLine;
end.
   valueA                      = 5.25
   valueB                      = 4000
   valueA multiplied by valueB = 21000.00
 
 
Delphi Programming Neil Moffatt 2002 - 2017. All rights reserved.  |  Contact the author