Home  |  Delphi .net Home  |  System.Decimal  |  Add Method
  
Add  
Method  
Adds two Decimal values together
Decimal Structure
System NameSpace
CF1.  Function Add ( ValueA : Decimal; ValueB : Decimal ) : Decimal; Static;
CF : Methods with this mark are Compact Framework Compatible
Description
Returns a Decimal value that is the sum of ValueA and ValueB.
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
  valA, valB, valC : Decimal;

begin
  valA := 100.2;
  valB := 200.5;
  valC := System.Decimal.Add(valA, valB);

  Console.WriteLine('valA = ' + valA.ToString);
  Console.WriteLine('valB = ' + valB.ToString);
  Console.WriteLine('valC = ' + valC.ToString);

  Console.ReadLine;
end.
   valA = 100.2
   valB = 200.5
   valC = 300.7
 
 
Delphi Programming Neil Moffatt 2002 - 2017. All rights reserved.  |  Contact the author