MCPcopy Create free account
hub / github.com/abaplint/transpiler / clear

Method clear

packages/runtime/src/types/integer.ts:101–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99// the last four bytes, 00 on the left, as a signed integer; an empty xstring is 0
100 const hex = value.get().slice(-8);
101 let num = hex === "" ? 0 : parseInt(hex, 16);
102 if (hex.length === 8 && num > 0x7FFFFFFF) {
103 num = num - 0x100000000;
104 }
105 this.set(num);
106 } else if (typeof value === "string") {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected