Fix for min and max of zero, and Decimal minimum and maxiumum