@abaplint/runtime 2.5.3 → 2.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/src/compare/eq.js
CHANGED
|
@@ -38,10 +38,10 @@ function eq(left, right) {
|
|
|
38
38
|
}
|
|
39
39
|
if (left instanceof types_1.Structure || right instanceof types_1.Structure) {
|
|
40
40
|
if (!(right instanceof types_1.Structure)) {
|
|
41
|
-
return
|
|
41
|
+
return eq(left.getCharacter(), right);
|
|
42
42
|
}
|
|
43
43
|
if (!(left instanceof types_1.Structure)) {
|
|
44
|
-
return
|
|
44
|
+
return eq(left, right.getCharacter());
|
|
45
45
|
}
|
|
46
46
|
const l = left.get();
|
|
47
47
|
const r = right.get();
|
|
@@ -51,6 +51,15 @@ function templateFormatting(source, options) {
|
|
|
51
51
|
else if ((options === null || options === void 0 ? void 0 : options.decimals) && source instanceof types_1.Float) {
|
|
52
52
|
text = source.getRaw().toFixed(options.decimals);
|
|
53
53
|
}
|
|
54
|
+
else if (source instanceof types_1.DecFloat34) {
|
|
55
|
+
const raw = source.getRaw();
|
|
56
|
+
if (Number.isInteger(raw)) {
|
|
57
|
+
text = raw.toFixed(0);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
text = raw + "";
|
|
61
|
+
}
|
|
62
|
+
}
|
|
54
63
|
else if (source instanceof types_1.Float) {
|
|
55
64
|
const raw = source.getRaw();
|
|
56
65
|
if (Number.isInteger(raw)) {
|