digitalmars.D.learn - How do you get the min / max of two numbers a, b?
- Enjoys Math (2/2) Sep 18 2015 I know there's fmax for floats, but what about ints?
- Enjoys Math (2/4) Sep 18 2015 I see: http://dlang.org/phobos/std_algorithm_comparison.html#max
- ponce (2/4) Sep 19 2015 http://p0nce.github.io/d-idioms/#Minimum-or-maximum-of-numbers
I know there's fmax for floats, but what about ints? Thanks.
Sep 18 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
Sep 18 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
Sep 19 2015