Cell balancing calculation added. Fixed rounding of real numbers to the second decimal place

This commit is contained in:
Yury Shuvakin
2022-08-26 09:30:07 +03:00
parent 6ae4386b37
commit 046d1f55ce
7 changed files with 34 additions and 14 deletions

8
qml/Utils/MathHelper.qml Normal file
View File

@@ -0,0 +1,8 @@
pragma Singleton
import QtQuick 2.12
QtObject {
function roundDouble(value) {
return Math.round((value + Number.EPSILON) * 100) / 100
}
}

View File

@@ -22,5 +22,6 @@ QtObject {
property color hoveredButtonColor: "#03AC61"
property color pressedButtonColor: "#057845"
property color informationColor: "#4C68ED"
property color invalidColor: "#A31C00"
}

View File

@@ -1,2 +1,3 @@
module utils
singleton Palette 1.0 Palette.qml
singleton MathHelper 1.0 MathHelper.qml