def FloatGreaterThanEqualToZero(x):
try:<EOL><INDENT>x = float(x)<EOL><DEDENT>except:<EOL><INDENT>raise ValueError("<STR_LIT>" % x)<EOL><DEDENT>if x >= <NUM_LIT:0>:<EOL><INDENT>return x<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>" % x)<EOL><DEDENT>
If *x* is a float >= 0, returns it, otherwise raises and error.

    >>> print('%.1f' % FloatGreaterThanEqualToZero('1.5'))
    1.5

    >>> print('%.1f' % FloatGreaterThanEqualToZero('-1.1'))
    Traceback (most recent call last):
       ...
    ValueError: -1.1 not float greater than or equal to zero