Added rounding when formatting float-point types (fixes #70)