Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int getValue() {
- int result = 0, j = 1;
- numberBytes=getReversedArray(numberBytes);
- for (int i = 0; i < this.numberBytes.length; i++) {
- if (i>1) j *= 256;
- if (i == 1) j += 255;
- result = result + this.numberBytes[i] * j;
- }
- if (this.isNegative()) result = result * (-1);
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement