Ensure that float localization is not affected by set locale

It preserve old behavior that float '1000' is print as '1000.' and
float '11000' is print as '11000'.