---
layout: doc
title: general / log10
---
# log10

### NAME

    log10() - return the base 10 logarithm of a number

### SYNOPSIS

    float log10( float | int x );

### DESCRIPTION

    Returns the base 10 logarithm of x.  The argument may be an int or a
    float, and the return value is always a float.

    The value of x must be greater than 0.0.  If x is less than or equal to
    0.0, an error is raised.

### SEE ALSO

    log(3), log2(3), exp(3), pow(3)
