Fixing lower and upper calculation for SimpleDecimal