User Tools

Site Tools

한국어

cubloc:log:index

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
cubloc:log:index [2026/02/16 05:48] – created - external edit 127.0.0.1cubloc:log:index [2026/02/20 15:37] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Log ====== ====== Log ======
  
-Returns the natural logarithm (Ln) of a value.+The **Log** function returns the natural logarithm (base $e \approx 2.718$) of a numeric value, often denoted as **ln(x)**. It is widely used in calculations involving exponential decay, growth rates, and complex sensor data scaling.
  
 +For the most accurate results, use the ''Single'' data type. **Note:** The input value **B** must be greater than zero ($B > 0$). Entering zero or a negative number will result in a runtime error.
 +
 +Example
 <code xbasic> <code xbasic>
-A=Log B+Dim A As Single 
 +Dim B As Single 
 +B = 2.718282 
 +A = Log(B)      ' Returns approx. 1.0
 </code> </code>
 +
 +==== Explanation: ====
 +  * **B**: A positive numeric value ($B > 0$).
 +  * **Log B**: Calculates the natural logarithm ($ln B$).
 +  * **A**: Stores the result.
  
 See also [[:cubloc:log10:|Log10]] See also [[:cubloc:log10:|Log10]]
  
 [[cubloc:index#system_library:|Go CUBLOC home]] [[cubloc:index#system_library:|Go CUBLOC home]]
- 
cubloc/log/index.1771220931.txt.gz · Last modified: by 127.0.0.1