changed lesserOrEquals to lesser in toDecimal