1. Home
  2. Computing & Technology
  3. Delphi Programming
Glossary|Tips/Tricks|FREE App/VCL|Best'O'Net|Books|Link Back
Arithmetic routines
DELPHI RTL Reference

Abs function
Returns the absolute value of a number.

Ceil function
Returns the largest near integer number.

DivMod procedure
Returns the integer and the remainder of an integer division, in one operation.

Exp function
Returns the base of natural logarithms (e) raised to a power.

Floor function
Returns the smallest near integer number.

Frac function
Returns the fractional part of a number.

Int function
Returns the integer part of a number.

IntPower function
Returns a real number raised to an integer power.

IsInfinite function
Returns true if the value specified represents positive or negative infinity.

Ln function
Returns the natural logarith of a number.

LogN function
Returns the logarithm of a number for a given base

Max function
Returns the greater value of the two numerical values.

Min function
Returns the smaller value of the two numerical values.

Pi function
Returns number: 3.1415926535897932385

Poly function
Evaluates a uniform polynomial of one variable at the value X.

Power function
Returns a real number raised any power.

Round function
Rounds a real number to nearest integer number.

Sign function
Indicates whether a numeric value is positive, negative, or zero.

Sqr function
Returns the square of a number.

Sqrt function
Returns the square root of a number.

Trunc function
Truncates a real number to an integer number.

more to come...


 Free Delphi code snippet inside every Delphi Newsletter!
Subscribe to the Newsletter
Name
Email

 Got some code to share? Got a question? Need some help?
Explore Delphi Programming
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming

©2009 About.com, a part of The New York Times Company.

All rights reserved.