I need to write erlang function which takes in a string and then does different things if the string contains a float or an integer. I have thought of using string:to_float and string:to_integer, but I wonder if it's possible to use those in pattern-matching to match differen clauses or whether or not I need to use ifs to make the checking in one clause.