Allow the output precision to be specified

Instead of necessarily rounding coordinates to integers, allow
the number of decimal places to be specified.