43 lines
		
	
	
		
			80 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			80 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
---
 | 
						|
title: "std::math::floor"
 | 
						|
excerpt: "Compute the largest integer less than or equal to a number."
 | 
						|
layout: manual
 | 
						|
---
 | 
						|
 | 
						|
Compute the largest integer less than or equal to a number.
 | 
						|
 | 
						|
 | 
						|
 | 
						|
```kcl
 | 
						|
floor(@input: number): number
 | 
						|
```
 | 
						|
 | 
						|
 | 
						|
### Arguments
 | 
						|
 | 
						|
| Name | Type | Description | Required |
 | 
						|
|----------|------|-------------|----------|
 | 
						|
| `input` | [`number`](/docs/kcl/types/std-types-number) |  | Yes |
 | 
						|
 | 
						|
### Returns
 | 
						|
 | 
						|
[`number`](/docs/kcl/types/std-types-number)
 | 
						|
 | 
						|
 | 
						|
### Examples
 | 
						|
 | 
						|
```kcl
 | 
						|
sketch001 = startSketchOn(XZ)
 | 
						|
   |> startProfile(at = [0, 0])
 | 
						|
   |> line(endAbsolute = [12, 10])
 | 
						|
   |> line(end = [floor(7.02986), 0])
 | 
						|
   |> yLine(endAbsolute = 0)
 | 
						|
   |> close()
 | 
						|
 | 
						|
extrude001 = extrude(sketch001, length = 5)
 | 
						|
```
 | 
						|
 | 
						|

 | 
						|
 | 
						|
 |