This commit is contained in:
ferricles 2022-06-20 12:07:25 -07:00
parent 2d719e9a4e
commit 28955fe661

View file

@ -163,27 +163,14 @@ Base64 = (function () {
*/
constructor(data, length) {
/** @private
* @type {UInt8Array}
*/
if (length) {
if (typeof data === "string") {
this.bits = Uint8Array();
} else if (typeof data === "number") {
this.bits = Uint8Array();
}
} else {
if (typeof data === "string") {
this.bits = Uint8Array();
} else if (typeof data === "number") {
this.bits = Uint8Array();
}
}
this.bitvector = NumberInt();
}
}
let bitv = new BitVector(123123, 1);
/*
Turns a raw stat and a % stat into a final stat on the basis that - raw and >= 100% becomes 0 and + raw and <=-100% becomes negative.
Pct would be 0.80 for 80%, -1.20 for 120%, etc