Skip to reading
GDScript Programming & Godot

ceilf()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page
On this page

Earlier edition reference / Current 0.86.4.0 property paths > p. 350

Code example
ceilf(x: float) -> float

Round upward; the suffix selects a typed variant.

ceili()#

Code example
ceili(x: float) -> int

Round upward; the suffix selects a typed variant.

clamp()#

Code example
clamp(value: Variant, min: Variant, max: Variant) -> Variant

Limit a value between minimum and maximum.

clampf()#

Code example
clampf(value: float, min: float, max: float) -> float

Limit a value between minimum and maximum.

clampi()#

Code example
clampi(value: int, min: int, max: int) -> int

Limit a value between minimum and maximum.

cos()#

Code example
cos(angle_rad: float) -> float

Trigonometric/hyperbolic calculation; ordinary angle inputs use radians.

cosh()#

Code example
cosh(x: float) -> float

Trigonometric/hyperbolic calculation; ordinary angle inputs use radians.

cubic_interpolate()#

Code example
cubic_interpolate(from: float, to: float, pre: float, post: float, weight: float) -> float

Cubic interpolation using surrounding values, optionally time samples or angle handling.

Page 307 of 378Permalink
Go to page