Category talk:Wren-math: Difference between revisions

→‎Source code: Ensure consistency between types.
(Bug fixes, restoration of static Math.min/max methods and addition of Math.atan.)
(→‎Source code: Ensure consistency between types.)
Line 113:
x = t
}
return x.abs
}
 
// Returns the least common multiple of 'x' and 'y'.
static lcm(x, y) { (x*y).abs / gcd(x, y) }
if (x == 0 && y == 0) return 0
return (x*y).abs / gcd(x, y)
}
 
// Returns the remainder when 'b' raised to the power 'e' is divided by 'm'.
9,476

edits