terminating decimal calculator