@abaplint/runtime 2.7.163 → 2.7.164
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.
|
@@ -32,6 +32,7 @@ function templateFormatting(source, options) {
|
|
|
32
32
|
const raw = source.getRaw();
|
|
33
33
|
if ((options === null || options === void 0 ? void 0 : options.style) === "scientific") {
|
|
34
34
|
text = raw.toExponential().toUpperCase();
|
|
35
|
+
text = text.replace(/([+-])(\d)$/, "$10$2");
|
|
35
36
|
}
|
|
36
37
|
else if (Number.isInteger(raw)) {
|
|
37
38
|
text = raw.toFixed(0);
|
|
@@ -55,6 +55,7 @@ class FieldSymbol {
|
|
|
55
55
|
const pt = this.pointer;
|
|
56
56
|
if (pt instanceof float_1.Float) {
|
|
57
57
|
const buf = Buffer.allocUnsafe(8);
|
|
58
|
+
// CASTING is platform specific, so perhaps add a setting? But anyhow its not something developers should use
|
|
58
59
|
buf.writeDoubleLE(pt.getRaw());
|
|
59
60
|
return buf.toString("hex").toUpperCase();
|
|
60
61
|
}
|