Files
modeling-app/docs/kcl/pi.md
Jess Frazelle be047f5111 add unit functions (#3604)
* add unit functions

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* add tests

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* update docs

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* A snapshot a day keeps the bugs away! 📷🐛 (OS: windows-latest)

* empty

* A snapshot a day keeps the bugs away! 📷🐛 (OS: windows-latest)

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-21 12:12:56 -07:00

102 KiB
Raw Blame History

title, excerpt, layout
title excerpt layout
pi Return the value of `pi`. Archimedes constant (π). manual

Return the value of pi. Archimedes constant (π).

pi() -> number

Tags

  • math

Examples

const circumference = 70

const exampleSketch = startSketchOn("XZ")
  |> circle([0, 0], circumference / (2 * pi()), %)

const example = extrude(5, exampleSketch)

Rendered example of pi 0

Arguments

Returns

number