From Clomosy Docs

No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
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:|title=Ln Using in Clomosy - Clomosy Docs}}
{{#seo:|description=Learn how to use the Ln function in Clomosy for calculating the natural logarithm of a number, essential for advanced mathematical processing.}}

Latest revision as of 15:10, 24 December 2024

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:

See Also