def getThreeSignificantFigures(number):
 absoluteNumber = abs(number)
 if (absoluteNumber >= 10.0):
  return getRoundedToPlacesString(1, number)
 if (absoluteNumber < 1e-09):
  return getRoundedToPlacesString(12, number)
 return getRoundedToPlacesString((1 - math.floor(math.log10(absoluteNumber))), number)

def getThreeSignificantFigures ( number ) : absoluteNumber = abs ( number ) if ( absoluteNumber >= 10.0 ) : return getRoundedToPlacesString ( 1 , number ) if ( absoluteNumber < 1e-09 ) : return getRoundedToPlacesString ( 12 , number ) return getRoundedToPlacesString ( ( 1 - math . floor ( math . log10 ( absoluteNumber ) ) ) , number )
get number rounded to three significant figures as a string .