diff --git a/math.d b/math.d index 7682356..17fb0ae 100644 --- a/math.d +++ b/math.d @@ -14,6 +14,18 @@ import std.meta; import std.format; import std.stdio; +T +Max(T)(T a, T b) +{ + return a > b ? a : b; +} + +T +Min(T)(T a, T b) +{ + return a < b ? a : b; +} + T RoundUp(T)(T a, T b) {