Refactor floating point code for num_get::do_get into a template. No functionality change