import re


def parseValue(value):
    """Converts a string into a float, int, or string parameter."""
    if re.match(r'-*\d+', value):
        if value.find("e") > 0:
            return float(value)  # e.g. IT=1e5, IT=2.5e7
        elif value.find(".") > 0:
            return float(value)  # e.g. to=50.00
        else:
            return int(value)  # e.g. M=4
    else:
        return value