def getFourSignificantFigures(number):
 if (number == None):
  return None
 absoluteNumber = abs(number)
 if (absoluteNumber >= 100.0):
  return getRoundedToPlacesString(2, number)
 if (absoluteNumber < 1e-09):
  return getRoundedToPlacesString(13, number)
 return getRoundedToPlacesString((3 - math.floor(math.log10(absoluteNumber))), number)

def getFourSignificantFigures ( number ) : if ( number == None ) : return None absoluteNumber = abs ( number ) if ( absoluteNumber >= 100.0 ) : return getRoundedToPlacesString ( 2 , number ) if ( absoluteNumber < 1e-09 ) : return getRoundedToPlacesString ( 13 , number ) return getRoundedToPlacesString ( ( 3 - math . floor ( math . log10 ( absoluteNumber ) ) ) , number )
get number rounded to four significant figures as a string .