Fixed writing numbers with non-zero fraction.