Struct NonOverflowingIntBase

Does math as a 64 bit number, but saturates at int.min and int.max when converting back to a 32 bit int.

struct NonOverflowingIntBase(int min, int max);

History

Added January 1, 2025