S&box Wiki

Sandbox.MathX.SnapToGrid

Syntax

static float SnapToGrid( float f, float gridSize )

Description

Snap number to grid

Arguments

float f
float gridSize

Returns

float