You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
thebookofshaders/glossary/floor/README-ua.md

22 lines
816 B
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

## floor
Знаходить і повертає найближче ціле число, яке менше або дорівнює параметру
### Оголошення
```glsl
float floor(float x)
vec2 floor(vec2 x)
vec3 floor(vec3 x)
vec4 floor(vec4 x)
```
### Параметри
**```x```** — значення для обробки.
### Опис
**```floor()```** повертає значення, що дорівнює найближчому цілому числу, яке менше або дорівнює **`x`**.
<div class="simpleFunction" data="y = floor(x);"></div>
### Дивіться також
[ceil](/glossary/?lan=ua&search=ceil), [fract](/glossary/?lan=ua&search=fract), [mod](/glossary/?lan=ua&search=mod), [Розділ 05: Формотворчі функції](/05/?lan=ua)