mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-30 19:32:00 +08:00
Round to two digits, not one
Contributes to Asana issue 38958940640344
This commit is contained in:
parent
0c1b4934bf
commit
ccae79c378
@ -150,7 +150,7 @@ class PrintInformation(QObject):
|
||||
|
||||
# Material amount is sent as an amount of mm^3, so calculate length from that
|
||||
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()
|
||||
|
||||
if not self._enabled:
|
||||
|
Loading…
x
Reference in New Issue
Block a user