Click or drag to resize

MathfRound Method

Rounds `s` to the nearest whole number, with halfway cases rounded towards the nearest multiple of two.

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

Parameters

s
Type: SystemSingle
The number to round.

Return Value

Type: Single
The rounded number.
See Also