I'm working in pySpark and I have a variable LATITUDE that has a lot of decimal places. I need to create two new variables from this, one that is rounded and one that is truncated. Both to three decimal places.

What is the simplest way to truncate a value?

For rounding, I did:

```
raw_data = raw_data.withColumn("LATITUDE_ROUND", round(raw_data.LATITUDE, 3))

```

This seems to work, but let me know if there is a better way.