thebookofshaders/glossary/ceil
Kvmilos 4890cbeb72 unified grammar in Polish translations 2025-02-09 17:45:53 +01:00
..
README-pl.md unified grammar in Polish translations 2025-02-09 17:45:53 +01:00
README-ua.md add ukrainian translation 2023-08-06 20:36:42 +03:00
README-vi.md Translate glossary section (partly) and swap all/any page 2020-07-30 14:03:05 +07:00
README.md unified the singular/plural forms 2025-02-09 14:57:23 +01:00

README.md

Ceil

Find the nearest integer that is greater than or equal to the parameter

Declaration

float ceil(float x)  
vec2 ceil(vec2 x)  
vec3 ceil(vec3 x)  
vec4 ceil(vec4 x)

Parameters

x specifies the value to evaluate.

Description

ceil() returns a value equal to the nearest integer that is greater than or equal to x.

See Also

floor, fract, mod, Chapter 05: Shaping Functions