UNPKG

@design-automation/mobius-inline-funcs

Version:
18 lines (17 loc) 641 B
/** * Returns the base 10 logarithm of the given number or list of numbers. If the number is negative, NaN is returned. * \n * If a custom base is needed, using `log10(y) / log10(x)` will return the logarithm of `y` with base `x`. (log x (y)) * \n * ``` * Math.log10(2); // 0.3010299956639812 * Math.log10(1); // 0 * Math.log10(0); // -Infinity * Math.log10(-2); // NaN * Math.log10(100000); // 5 * ``` * * @param base A number or list of numbers. * @returns A number, list of numbers, `Infinity` or `NaN`. */ export declare function log10(base: number | number[]): number | number[];