# `GSLayer roundCoordinatesToGrid:`

*Instance Method*

> **Deprecated**

Rounds shape and anchor coordinates to a uniform grid and rounds the layer width to at most unit precision.

## Declaration

```swift
func roundCoordinates(toGrid gridLength: CGFloat)
```

```objc
- (void) roundCoordinatesToGrid:(CGFloat) gridLength;
```

```python
roundCoordinatesToGrid_(gridLength: float)
```

## See Also

### Rounding Coordinates

- [`GSLayer roundSelectedCoordinates:`](/Core/GlyphsCore/GSLayer/roundSelectedCoordinates:) — Rounds selected element coordinates to a grid.
- [`GSLayer roundCoordinates`](/Core/GlyphsCore/GSLayer/roundCoordinates) — Rounds path, component, and anchor coordinates using the associated font master settings.
- [`GSLayer roundCoordinatesToGridWithSettings:`](/Core/GlyphsCore/GSLayer/roundCoordinatesToGridWithSettings:) — Rounds path, component, and anchor coordinates to a grid.
- [`GSLayer roundCoordinatesFastToGridWithSettings:`](/Core/GlyphsCore/GSLayer/roundCoordinatesFastToGridWithSettings:) — Rounds path, component, and anchor coordinates to a grid without normal edit bookkeeping.
- [`GSLayer roundCoordinatesToGridFast:`](/Core/GlyphsCore/GSLayer/roundCoordinatesToGridFast:) — Rounds shape and anchor coordinates to a uniform grid without normal edit bookkeeping.

