Files
modeling-app/docs/kcl/max.md
Nick Cameron 66f6b741c4 Support = in record initialisation (#4519)
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2024-11-24 20:21:55 +00:00

58 KiB

title, excerpt, layout
title excerpt layout
max Compute the maximum of the given arguments. manual

Compute the maximum of the given arguments.

max(args: [number]) -> number

Tags

  • math

Arguments

Name Type Description Required
args [number] Yes

Returns

number

Examples

exampleSketch = startSketchOn("XZ")
  |> startProfileAt([0, 0], %)
  |> angledLine({
       angle = 70,
       length = max(15, 31, 4, 13, 22)
     }, %)
  |> line([20, 0], %)
  |> close(%)

example = extrude(5, exampleSketch)

Rendered example of max 0