From Clomosy Docs
No edit summary |
ClomosyAdmin (talk | contribs) No edit summary |
||
| Line 32: | Line 32: | ||
<h2> See Also </h2> | <h2> See Also </h2> | ||
* [[System_Library#Math_Functions | Math Functions]] | * [[System_Library#Math_Functions | Math Functions]] | ||
{{#seo:|description=}} | |||
Revision as of 11:01, 24 December 2024
function Ln(const X: Extended): Extended;
The Ln function takes an integer or floating point Number and gives the natural logarithm of that number. This is only used for mathematical processing.
Ln has the opposite effect to Exp - the exponent of a number.
Example
var
float,number : float;
{
number = 2.14;
float = Ln(number);
ShowMessage('Ln('+FloatToStr(number)+') = '+FloatToStr(float));
float = Exp(float);
ShowMessage('Exp(Ln('+FloatToStr(float)+')) = '+FloatToStr(float));
}
Output:
Ln(2,14) = 0,76080582903376
Exp(Ln(2,14)) = 2,14