MCPcopy Create free account
hub / github.com/GamerHack/GamerHack.github.io / toString

Method toString

g2all/900/module/int64.js:119–132  ·  view source on GitHub ↗
(is_pretty=false)

Source from the content-addressed store, hash-verified

117 }
118
119 toString(is_pretty=false) {
120 if (!is_pretty) {
121 const low = this.lo.toString(16).padStart(8, '0');
122 const high = this.hi.toString(16).padStart(8, '0');
123 return '0x' + high + low;
124 }
125 let high = this.hi.toString(16).padStart(8, '0');
126 high = high.substring(0, 4) + '_' + high.substring(4);
127
128 let low = this.lo.toString(16).padStart(8, '0');
129 low = low.substring(0, 4) + '_' + low.substring(4);
130
131 return '0x' + high + '_' + low;
132 }
133}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected