User Tools

Site Tools


4rpl:commands:log10

This is an old revision of the document!


Index
Math

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. Eg. (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

trace(log10(1))  # prints '0'
trace(log10(10)) # prints '1'

Index

4rpl/commands/log10.1652955648.txt.gz · Last modified: 2025/02/14 14:56 (external edit)