def format(self, value):
        """ Formats a given value, attaching the appropriate metric unit """
        metric = {"degree": u'\N{DEGREE SIGN}', "percent": u'%', "meter": u'm', "klux": u' L', "none": ''}[self.unit]
        if self.unit == "percent":
            value *= 100.0
        return u"{:3.1f}{}".format(value, metric)
 Formats a given value, attaching the appropriate metric unit 
metadrive/render_pipeline/rpcore/pluginbase/day_setting_types.py