> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ST_ReducePrecision (Python)

> Reduce the precision of the coordinates in geometry to a specified number of decimal places.

Reduce the precision of the coordinates in geometry to a specified number of decimal places.

SQL reference: [`ST_ReducePrecision`](/reference/wherobots-db/geometry-data/processing/ST_ReducePrecision)

## Signature

```python theme={"system"}
from sedona.spark.sql.st_functions import ST_ReducePrecision

ST_ReducePrecision(
    geometry: ColumnOrName,
    precision: Union[ColumnOrName, int],
) -> Column
```

## Parameters

<ParamField path="geometry" type="ColumnOrName" required>
  Geometry to reduce the precision of.
</ParamField>

<ParamField path="precision" type="Union[ColumnOrName, int]" required>
  Number of decimal places to reduce the precision to as either an integer or integer column, 0 reduces precision to whole numbers.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  Geometry with precision reduced to the indicated number of decimal places as a geometry column, empty geometry if an invalid precision is passed.
</ResponseField>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.