in `min` and `max`: `float` to `int`
I will add versions for other types later
It is because `abs` from 'stdlib.h' is for `int`, so I wanted to keep
the symmetry