Re: How do you get the min / max of two numbers a, b?

2015-09-19 Thread ponce via Digitalmars-d-learn
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

How do you get the min / max of two numbers a, b?

2015-09-18 Thread Enjoys Math via Digitalmars-d-learn
I know there's fmax for floats, but what about ints? Thanks.

Re: How do you get the min / max of two numbers a, b?

2015-09-18 Thread Enjoys Math via Digitalmars-d-learn
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