in reply to Rounding numbers

Just look up 'sprintf'. Lots of answers there!