Fix inserting zero after decimal point

Fix issue #21.