changes value representation in waves

This commit is contained in:
2023-03-19 11:23:25 +01:00
parent 354c4a4390
commit 361a18b38e
2 changed files with 13 additions and 4 deletions

View File

@ -11,6 +11,7 @@
package com.minres.scviewer.database;
import java.math.BigInteger;
import java.util.Arrays;
/**
* The Class BitVector.
@ -168,7 +169,9 @@ public class BitVector implements IEvent {
}
res[i] = Character.forDigit(digit, 16); // ((digit < 10) ? '0' + digit : 'a' + digit -10)
}
return new String(res);
int idx=0;
while(res[idx]=='0' && idx<(res.length-1)) idx++;
return new String( Arrays.copyOfRange(res, idx, res.length));
}
/**