temp
This commit is contained in:
parent
2d719e9a4e
commit
28955fe661
1 changed files with 3 additions and 16 deletions
19
js/utils.js
19
js/utils.js
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue