Skip to content

@yantrix/functions v0.0.2Docs


Yantrix API / @yantrix/functions / Transformers / log

Function: log()

ts
function log(num, base): number

Calculates the logarithm of a number with a specified base.

Parameters

num: number

The number to calculate the logarithm of.

base: number

The base of the logarithm.

Returns

number

The logarithm of the number with the specified base.