rect.round([precision])

Rounds the rectangle to the given precision.

Default precision is 0.