Round to two digits, not one

Contributes to Asana issue 38958940640344
This commit is contained in:
Arjen Hiemstra 2015-06-30 17:24:44 +02:00
parent 0c1b4934bf
commit ccae79c378

View file

@ -150,7 +150,7 @@ class PrintInformation(QObject):
# Material amount is sent as an amount of mm^3, so calculate length from that # Material amount is sent as an amount of mm^3, so calculate length from that
r = self._current_settings.getSettingValueByKey("material_diameter") / 2 r = self._current_settings.getSettingValueByKey("material_diameter") / 2
self._material_amount = round((amount / (math.pi * r ** 2)) / 1000, 1) self._material_amount = round((amount / (math.pi * r ** 2)) / 1000, 2)
self.materialAmountChanged.emit() self.materialAmountChanged.emit()
if not self._enabled: if not self._enabled: