Thread overview
How do you get the min / max of two numbers a, b?
Sep 19, 2015
Enjoys Math
Sep 19, 2015
Enjoys Math
Sep 19, 2015
ponce
September 19, 2015
I know there's fmax for floats, but what about ints?

Thanks.
September 19, 2015
On Saturday, 19 September 2015 at 03:53:12 UTC, Enjoys Math wrote:
> I know there's fmax for floats, but what about ints?
>
> Thanks.

I see: http://dlang.org/phobos/std_algorithm_comparison.html#max
September 19, 2015
On Saturday, 19 September 2015 at 03:53:12 UTC, Enjoys Math wrote:
> I know there's fmax for floats, but what about ints?
>
> Thanks.

http://p0nce.github.io/d-idioms/#Minimum-or-maximum-of-numbers