1
0
forked from IPKM/nmreval

increase precision

This commit is contained in:
Dominik Demuth 2024-05-06 18:52:20 +02:00
parent f0448fac0f
commit ef66cf584a

View File

@ -385,6 +385,6 @@ class ValueModel(QtCore.QAbstractTableModel):
@staticmethod @staticmethod
def as_string(value) -> str: def as_string(value) -> str:
if isinstance(value, complex): if isinstance(value, complex):
return f'{value.real:.8g}{value.imag:+.8g}j' return f'{value.real:.13g}{value.imag:+.13g}j'
else: else:
return f'{value:.8g}' return f'{value:.13g}'