User Tools

Site Tools

한국어

cubloc:log10:index

Differences

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

Link to this comparison view

Next revision
Previous revision
cubloc:log10:index [2026/02/16 05:48] – created - external edit 127.0.0.1cubloc:log10:index [2026/02/20 15:37] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Log10 ====== ====== Log10 ======
  
-Return logarithm base 10 of a value.+The **Log10** function returns the common logarithm (base 10of a numeric value. It is frequently used in engineering units like decibels (dB), pH levels, or any system where data scales by powers of 10.
  
 +
 +
 +For the best precision, use the ''Single'' data type. **Note:** Similar to the natural log, the input value **B** must be greater than zero ($B > 0$).
 +
 +Example
 <code xbasic> <code xbasic>
-A=Log10 B+Dim A As Single 
 +Dim B As Single 
 +B = 100.0 
 +A = Log10(B)    ' Returns 2.0 (because 10^2 = 100)
 </code> </code>
 +
 +==== Explanation: ====
 +  * **B**: A positive numeric value ($B > 0$).
 +  * **Log10 B**: Calculates the base-10 logarithm.
 +  * **A**: Stores the result.
  
 See also [[:cubloc:log:|Log]] See also [[:cubloc:log:|Log]]
  
 [[cubloc:index#system_library:|Go CUBLOC home]] [[cubloc:index#system_library:|Go CUBLOC home]]
cubloc/log10/index.1771220931.txt.gz · Last modified: by 127.0.0.1