Category talk:Wren-math: Difference between revisions
→Source code: Added Math.dim method.
m (→Source code: No need for Int qualifier.) |
(→Source code: Added Math.dim method.) |
||
Line 138:
return Math.gamma(x).abs.log
}
// Returns the positive difference of two numbers.
static dim(x, y) { (x >= y) ? x - y : 0 }
// Static alternatives to instance methods in Num class.
|