Template:Log(x)/doc

From Wikipedia, the free encyclopedia

This template notifies the reader of the notation for logarithms. Place it at the top of an article or section (below any infobox or sidebar) where log(x) is used conventionally. The first unnamed parameter can be used to indicate which convention is used.

{{log(x)|parameter 1}}

Parameter one value meaning result
{{log(x)|10}} {{log(x)|ten}} {{log(x)|dec}} or {{log(x)|decimal}} Indicates a common logarithm, i.e. log10(x)
{{log(x)|2}} {{log(x)|two}} {{log(x)|bin}} or {{log(x)|binary}} Indicates a computational logarithm, i.e. log2(x)
{{log(x)|any other value}} or {{log(x)}} Indicates a natural logarithm, i.e. ln(x) or loge(x).