* 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>
41 lines
102 KiB
Markdown
41 lines
102 KiB
Markdown
---
|
||
title: "pi"
|
||
excerpt: "Return the value of `pi`. Archimedes’ constant (π)."
|
||
layout: manual
|
||
---
|
||
|
||
Return the value of `pi`. Archimedes’ constant (π).
|
||
|
||
|
||
|
||
```js
|
||
pi() -> number
|
||
```
|
||
|
||
### Tags
|
||
|
||
* `math`
|
||
|
||
### Examples
|
||
|
||
```js
|
||
const circumference = 70
|
||
|
||
const exampleSketch = startSketchOn("XZ")
|
||
|> circle([0, 0], circumference / (2 * pi()), %)
|
||
|
||
const example = extrude(5, exampleSketch)
|
||
```
|
||
|
||

|
||
|
||
### Arguments
|
||
|
||
|
||
### Returns
|
||
|
||
`number`
|
||
|
||
|
||
|