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/ceil/README-vi.md

22 lines
614 B
Markdown

## Ceil
Tìm số nguyên lớn hơn hoặc bằng gần nhất (làm tròn lên).
### Các phiên bản
```glsl
float ceil(float x)
vec2 ceil(vec2 x)
vec3 ceil(vec3 x)
vec4 ceil(vec4 x)
```
### Các tham số
```x``` giá trị cần làm tròn
### Mô tả
```ceil()``` làm tròn ```x``` thành số lớn hơn hoặc bằng.
<div class="simpleFunction" data="y = ceil(x); "></div>
### Tham khảo thêm
[floor](/glossary/?lan=vi&search=floor), [fract](/glossary/?lan=vi&search=fract), [mod](/glossary/?lan=vi&search=mod), [Các hàm số cơ bản (Hàm hình dạng - Shape function)](/05/?lan=vi)