Category talk:Wren-big: Difference between revisions

→‎Source code: Fixed bug and aligned BigRat.pow with Rat.pow method.
(→‎Source code: Fixed bug in BigDec comparison methods.)
(→‎Source code: Fixed bug and aligned BigRat.pow with Rat.pow method.)
Line 1,944:
pow(i) {
if (!((i is Num) && i.isInteger)) Fiber.abort("Argument must be an integer.")
if (i == 0) return thisBigRat.copy()one
if (i == 1) return this.copy()
if (i == -1) return this.inverse
var np = _n.pow(i.abs)
var dp = _d.pow(i.abs)
9,482

edits