def parse_jcamp_value(text):
    """
    Parse value text from Bruker JCAMP-DX file returning the value.
    """
    if '<' in text:
        return text[1:-1]
    elif '.' in text or 'e' in text or 'inf' in text:
        return float(text)
    else:
        return int(text)
