RosettaCodeData/Task/Real-constants-and-functions/Delphi/real-constants-and-functions.delphi
Ingy döt Net b83f433714 tasks a-s
2013-04-10 23:57:08 -07:00

12 lines
443 B
Text

Exp(1); // e (Euler's number)
Pi; // π (Pi)
Sqrt(x); // square root
LogN(BASE, x) // log of x for a specified base
Log2(x) // log of x for base 2
Log10(x) // log of x for base 10
Ln(x); // natural logarithm (for good measure)
Exp(x); // exponential
Abs(x); // absolute value (a.k.a. "magnitude")
Floor(x); // floor
Ceil(x); // ceiling
Power(x, y); // power