| x, y | fdim(x, y) |
|---|---|
| x ≥ y | x - y |
| x <= y | +0.0 |
fdim
fn
real fdim(real x, real y) @safe pure nothrow @nogcReturns the positive difference between x and y.
Equivalent to fmax(x-y, 0).
real fdim(real x, real y) @safe pure nothrow @nogcReturns the positive difference between x and y.
Equivalent to fmax(x-y, 0).
| x, y | fdim(x, y) |
|---|---|
| x ≥ y | x - y |
| x <= y | +0.0 |