Jump to content

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.
9,485

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.