def toString( x ):
    """
    Return a string representing x. If x is a float convert it to scientific notation.

    Arguments:
        x: The value to convert to a string.
    """
    if isinstance( x, float ):
        return "{:.2e}".format( x )
    else:
        return str( x )