log2()
The logarithm is the base-2 logarithm: the inverse of the exponential function (exp) with base 2.
Syntax
log2(
number)
Learn more about syntax conventions.
Parameters
Name | Type | Required | Description |
---|---|---|---|
number | real |
✔️ | The number for which to calculate the base-2 logarithm. |
Returns
- The logarithm is the base-2 logarithm: the inverse of the exponential function (exp) with base 2.
null
if the argument is negative or null or can't be converted to areal
value.
Example
print result=log2(5)
Output
result |
---|
2.3219280948873622 |
Related content
Atsiliepimai
https://aka.ms/ContentUserFeedback.
Jau greitai: 2024 m. palaipsniui atsisakysime „GitHub“ problemų, kaip turiniui taikomo atsiliepimų mechanizmo, ir pakeisime jį nauja atsiliepimų sistema. Daugiau informacijos žr.Pateikti ir peržiūrėti atsiliepimą, skirtą