Category talk:Wren-big: Difference between revisions

Content added Content deleted
(→‎Source code: Bug fix.)
(→‎Source code: Fixed translation error.)
Line 383: Line 383:
var lb = b.count
var lb = b.count
var base = 1e7
var base = 1e7
var result = List.filled(lb, 0)
var result = List.filled(la - lb + 1, 0)
var divMostSigDigit = b[-1]
var divMostSigDigit = b[-1]
// normalization
// normalization
Line 429: Line 429:
borrow = borrow + carry
borrow = borrow + carry
}
}
if (shift < result.count) {
result[shift] = quotDigit
result[shift] = quotDigit
} else {
result.add(quotDigit)
}
shift = shift - 1
shift = shift - 1
}
}