a fix to get precisionFromString with whole numbers

[ci skip]
This tag has no release notes.