(PUP-3602) Break out common match to floating point logic

This breaks out the repeated sequence of converting a match
to a floating point value. The exact same sequence was performed
for both to_n, and to_n_with_radix.