log10

Summary

Returns the base 10 logarithm for the specified value.

Usage

public static double log10(double x)

Returns

The base 10 logarithm of the specified value. If the specified value is negative, NaN is returned. If the specified value is zero, negative infinity is returned.

Parameters

x

A positive number or zero to evaluate with.

Description

Returns the base 10 logarithm for the specified value.

Mathematically, this would be represented as log10(x).

Examples

Basic Usage
1
2
3
import System;
 
Console.log(Math.log10(5));

Share

HTML | BBCode | Direct Link