30 lines
106 KiB
Markdown
30 lines
106 KiB
Markdown
---
|
||
title: "PI"
|
||
subtitle: "Constant in math"
|
||
excerpt: "The value of `pi`, Archimedes’ constant (π)."
|
||
layout: manual
|
||
---
|
||
|
||
The value of `pi`, Archimedes’ constant (π).
|
||
|
||
```kcl
|
||
PI: number(_?) = 3.14159265358979323846264338327950288_?
|
||
```
|
||
|
||
|
||
|
||
### Examples
|
||
|
||
```kcl
|
||
circumference = 70
|
||
|
||
exampleSketch = startSketchOn(XZ)
|
||
|> circle(center = [0, 0], radius = (circumference / (2 * PI)): number(mm))
|
||
|
||
example = extrude(exampleSketch, length = 5)
|
||
```
|
||
|
||

|
||
|
||
|