Why does numeric_limits::min return a negative value for int, but positive values for e.g. float and double?
#include #inclu
It's unfortunate, but behind similar names completely different meaning lies. It was kinda carried over from C, where DBL_MIN and INT_MIN has the very same "problem".
As not much can be done, just remember what means what.