# SnapNumeric delegate

Namespace: [Grasshopper2.UI.Snap](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.snap.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public delegate SnapNumeric
```

Snap a number to the nearest allowed number. This is only useful for one-dimensional snapping behaviour, or at least where snapping is completely unrelated in the dimensions involved.

**Signature:**

```cs
double SnapNumeric(double value)
```

**Parameters:**

- `value` ([double](https://learn.microsoft.com/dotnet/api/system.double)): Value to snap.
