Thread overview | |||||
---|---|---|---|---|---|
|
September 19, 2015 How do you get the min / max of two numbers a, b? | ||||
---|---|---|---|---|
| ||||
I know there's fmax for floats, but what about ints? Thanks. |
September 19, 2015 Re: How do you get the min / max of two numbers a, b? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Enjoys Math | 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 Re: How do you get the min / max of two numbers a, b? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Enjoys Math | 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 |
Copyright © 1999-2021 by the D Language Foundation