Files
modeling-app/docs/kcl/max.md
Paul Tagliamonte e1c45bdb33 Start to rework some of our kcl docs (#3222)
* Start to rework some of our kcl docs

Signed-off-by: Paul R. Tagliamonte <paul@zoo.dev>
2024-08-06 20:27:26 -04:00

148 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

Examples

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

const example = extrude(5, exampleSketch)

Rendered example of max 0

Arguments

  • args: [number] (REQUIRED)

Returns

number