pull/108/head
Holger Mueller 2019-11-21 22:50:52 +01:00
rodzic 91a8e3af2d
commit 8216f7d1a0
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -107,12 +107,12 @@ class Value:
value = value[:-1]
if self.fmt.assume_infinity and value == "\N{INFINITY}":
self.value = math.inf
self._value = math.inf
elif self.fmt.assume_infinity and value == "-\N{INFINITY}":
self.value = -math.inf
self._value = -math.inf
else:
self.value = decimal.Decimal(value, context=Value.CTX) * factor
return float(self.value)
self._value = decimal.Decimal(value, context=Value.CTX) * factor
return float(self._value)
@property
def unit(self) -> str: