{
"id": "fn-math-log2",
"dataComponent": "math",
"heading": {
"title": "log2",
"badges": ["Math", "JSMath"]
},
"synopsis": "Returns the base-2 logarithm of a single numeric argument > 0.",
"codeBlocks": [
"extend(\"math\")\\n\\nsput( math:log2(8) )\\n# => 3\\n\\nsput( math:log2(1) )\\n# => 0\\n"
],
"notes": [
"One argument > 0, returning log base 2 of that value."
]
}