Patch getDecimalInfo to support the range form of the places constraint.
Fixes #18367.

(cherry picked from commit 301927d25a269238e8d1f95baf9961a1215c1896)