print numbers as decimals when feasible