def _parse_number(value):

    try:
        return None if value == 'null' else float(value)
    except ValueError as error:
        logger.exception('Error parsing value as a JSON number')

        msg = 'Unable to parse {!r} as a float: {}'.format(value, error)
        raise DCOSException(msg)
:param value: The string to parse
dataset/ETHPy150Open dcos/dcos-cli/dcos/jsonitem.py/_parse_number