Click or drag to resize

MathfFloorToInt Method

Rounds `s` downward (towards negative infinity). This is the same as Floor(Single), but returns an `int`.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static int FloorToInt(
	float s
)

Parameters

s
Type: SystemSingle
The number to floor.

Return Value

Type: Int32
The largest whole number that is not more than `s`.
See Also