Patch getDecimalInfo to support the range form of the places constraint. (18367)

The patch is pretty simple and and includes a unit test to ensure there is no future regression.