Added support for decimal places in to_s

Now possible to specify the number of decimal places for to_s. Defaults
to 3