kcl →
round
Round a number to the nearest integer.
round(num: number) -> number
Tags
math
Arguments
Name | Type | Description | Required |
---|---|---|---|
num | number | Yes |
Returns
number
Examples
sketch001 = startSketchOn('XZ')
|> startProfileAt([0, 0], %)
|> lineTo([12, 10], %)
|> line([round(7.02986), 0], %)
|> yLineTo(0, %)
|> close(%)
extrude001 = extrude(5, sketch001)