* Show a more reasonable name in function docs Signed-off-by: Nick Cameron <nrc@ncameron.org> * Fix buggy docs for union types Signed-off-by: Nick Cameron <nrc@ncameron.org> * Make types in the docs signatures into links Signed-off-by: Nick Cameron <nrc@ncameron.org> --------- Signed-off-by: Nick Cameron <nrc@ncameron.org>
		
			
				
	
	
		
			29 lines
		
	
	
		
			106 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			106 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
---
 | 
						||
title: "std::math::PI"
 | 
						||
excerpt: "The value of `pi`, Archimedes’ constant (π)."
 | 
						||
layout: manual
 | 
						||
---
 | 
						||
 | 
						||
The value of `pi`, Archimedes’ constant (π).
 | 
						||
 | 
						||
 | 
						||
 | 
						||
```kcl
 | 
						||
std::math::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)
 | 
						||
```
 | 
						||
 | 
						||

 | 
						||
 | 
						||
 |