Add missing else clause
Add trimZeros to remove unnecessary zeros
Trim zeros before compareTo

Decimals that are only zero break here otherwise