Commit 214b2aa
committed
[qml] ExpressionTextField: Don't round up floating numbers
If the `ExpressionTextField` is meant for an integer (`isInt = true`),
then the value of the expression should be an integer, meaning rounding
may need to be applied. However, for floating numbers, we do not want
to lose some precision, so the value should never be rounded or set
to a fixed number of decimal digits.1 parent 5b70888 commit 214b2aa
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
| |||
80 | 78 | | |
81 | 79 | | |
82 | 80 | | |
83 | | - | |
| 81 | + | |
84 | 82 | | |
85 | 83 | | |
86 | 84 | | |
| |||
93 | 91 | | |
94 | 92 | | |
95 | 93 | | |
96 | | - | |
| 94 | + | |
97 | 95 | | |
98 | 96 | | |
99 | 97 | | |
| |||
0 commit comments