Exemple #1
0
 def make_float(self, flt):
     return functions.make_float(flt)
 def format_value(self, value):
     return make_float(value)
 def format_value(self, value):
     return timedelta(days=make_float(value)*MightyConfig.days_in_year)
Exemple #4
0
 def format_value(self, value):
     if self.is_int:
         return make_int(value)
     return make_float(value)