Unified parseFloat and parseInt into parseNumber using try combinator