| tools/Formatter.py | ●●●●● patch | view | raw | blame | history |
tools/Formatter.py
@@ -6,10 +6,10 @@ class Variable: def __init__(self, value=None, formatting="sci 3"): def __init__(self, value=None, formatting=None): try: self.value = float(value) self.value = FLOAT self.type = FLOAT except (ValueError, TypeError): self.type = STRING self.formatted_value = None @@ -32,7 +32,7 @@ formatting = self.formatting formatter = FormatterFactory.get_formatter(formatting) return formatter.toFormat(self.formatted_value) return formatter.toFormat(self.value) else: return self.value