shiftRight method

LexoInteger shiftRight([
  1. int times = 1
])

Implementation

LexoInteger shiftRight([int times = 1]) {
  if (mag.length - times <= 0) {
    return LexoInteger.zero(sys);
  }
  final nmag = List<int>.filled(mag.length - times, 0);
  lexoHelper.arrayCopy(mag, times, nmag, 0, nmag.length);
  return LexoInteger.make(sys, sign, nmag);
}