Files
modeling-app/docs/kcl/max.md
Nick Cameron df278c7e6a Various hover improvements (#5617)
* Show more info on hover for variables

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* Move hover impls to lsp module

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* Make hover work on names inside calls, fix doc line breaking, trim docs in tool tips

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* Test the new hovers; fix signature syntax

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* Hover tips for kwargs

Signed-off-by: Nick Cameron <nrc@ncameron.org>

---------

Signed-off-by: Nick Cameron <nrc@ncameron.org>
2025-03-04 09:53:31 +00:00

60 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(end = [20, 0])
  |> close()

example = extrude(exampleSketch, length = 5)

Rendered example of max 0