Abstracted out and centralized the parsing of floats and integers