| Glossary|Tips/Tricks|FREE App/VCL|Best'O'Net|Books|Link Back |
Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
Ln |
unit |
| System | |
| category | |
| arithmetic routines |
| declaration |
| description |
The natural logarithm is the logarithm to the base e. Theconstant e is approximately 2.718282.
We can calculate base-b logarithms for any number x by dividing the natural logarithm of x by the natural logarithm of b as follows:
Lnb(x) = Ln(x) / Ln(b)
| example |
1 := Ln(e); |
| in real code |
| see also |
| Free Delphi code snippet inside every Delphi Newsletter! |
|
|
| Got some code to share? Got a question? Need some help? |
|
|

