69 KiB
69 KiB
title, subtitle, excerpt, layout
title | subtitle | excerpt | layout |
---|---|---|---|
log2 | Function in std::math | Compute the base 2 logarithm of the number. | manual |
Compute the base 2 logarithm of the number.
exampleSketch = startSketchOn(XZ)
|> startProfile(at = [0, 0])
|> line(end = [log2(100), 0])
|> line(end = [5, 8])
|> line(end = [-10, 0])
|> close()
example = extrude(exampleSketch, length = 5)
Arguments
Name | Type | Description | Required |
---|---|---|---|
input |
number |
A number. | Yes |
Returns
number
- A number.
Function signature
log2(@input: number): number
Examples
exampleSketch = startSketchOn(XZ)
|> startProfile(at = [0, 0])
|> line(end = [log2(100), 0])
|> line(end = [5, 8])
|> line(end = [-10, 0])
|> close()
example = extrude(exampleSketch, length = 5)