(self, data_value)
return value
Convert provided float to language specific literal.

    Args:
      data_value: The DataValue object representing the value to be converted
        to a float literal.

    Returns:
      (str) String representation of value once cast to an float.

    Raises:
      ValueError: if float is inf as we don't support rendering an inf.
Convert provided float to language specific literal.
Convert provided float to language specific literal .
def _Float(self, data_value):
    """Convert provided float to language specific literal.

    Args:
      data_value: The DataValue object representing the value to be converted
        to a float literal.

    Returns:
      (str) String representation of value once cast to an float.

    Raises:
      ValueError: if float is inf as we don't support rendering an inf.
    """
    value = float(data_value.value)
    if value == float('inf'):
      raise ValueError('DataValue does not support rendering of provided Type '
                       '(%s)' % value)

    value = unicode(value)
    # Note that unicode(float()) already appends '.0' if is an integral value.
    return value
def _Float ( self , data_value ) : value = float ( data_value . value ) if value == float ( 'inf' ) : raise ValueError ( 'DataValue does not support rendering of provided Type ' '(%s)' % value ) value = unicode ( value ) # Note that unicode(float()) already appends '.0' if is an integral value. return value