Rework Fformat to avoid integer overflow issues.