Home  |  Delphi .net Home  |  System.Decimal  |  Divide Method
  
Divide  
Method  
Divides one Decimal value by another
Decimal Structure
System NameSpace
CF1.  Function Divide ( ValueA : Decimal; ValueB : Decimal ) : Decimal; Static;
CF : Methods with this mark are Compact Framework Compatible
Description
Divides ValueA by ValueB.
 
An exception is thrown if the divide 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 := 51;
  valueB := 15;

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

  Console.ReadLine;
end.
   valueA                   = 51
   valueB                   = 15
   valueA divided by valueB = 3.4
 
 
Delphi Programming Neil Moffatt 2002 - 2017. All rights reserved.  |  Contact the author