User Tools

Site Tools


crpl:docs:log10

<- CRPL reference <- Math Commands

log10

log10

Description

The base ten logarithm. Gives the number of digits in the number before the decimal point. On zero, returns -inf. Below zero, returns NaN, a special value that always causes failure when compared to other numbers. (ie. (NaN<0) ⇒ false, (NaN>=0) ⇒ false)

other logarithms
  • log10(x) = log(x, 10)
  • log10(x)/log10(e) = ln(x)
  • log10(2)=0.3010-ish
  • log10(e)=0.4343-ish
  • log10(10)=1

Examples

ShowTraceLog
ClearTraceLog
-1 log10 trace #NaN
0 log10 trace #-inf
1 log10 trace #0
10 log10 trace #1
100 log10 trace #2
crpl/docs/log10.txt · Last modified: 2022/07/01 14:55 by Karsten75