mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 00:32:51 +02:00
[refactor] Moved 'roundToTwo' to its own TS file
This commit is contained in:
@@ -242,11 +242,6 @@ function powerOfTwo(n) {
|
||||
return n && (n & (n-1)) === 0;
|
||||
}
|
||||
|
||||
//Rounds a number to two decimal places
|
||||
function roundToTwo(n) {
|
||||
return +(Math.round(n + "e+2") + "e-2");
|
||||
}
|
||||
|
||||
export {sizeOfObject,
|
||||
clearObject,
|
||||
addOffset,
|
||||
@@ -255,7 +250,6 @@ export {sizeOfObject,
|
||||
compareArrays,
|
||||
printArray,
|
||||
powerOfTwo,
|
||||
roundToTwo,
|
||||
clearEventListenersEl,
|
||||
removeElementById,
|
||||
removeElement,
|
||||
|
||||
Reference in New Issue
Block a user