Snaps float value `s` to a given `step`.
This can also be used to round a floating point
number to an arbitrary number of decimals.
Namespace:
Godot
Assembly:
GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax public static float Stepify(
float s,
float step
)
Parameters
- s
- Type: SystemSingle
The value to stepify. - step
- Type: SystemSingle
The step size to snap to.
Return Value
Type:
Single[Missing <returns> documentation for "M:Godot.Mathf.Stepify(System.Single,System.Single)"]
See Also