I solve that problem using infix
infix fun BigDecimal.equalsTo(other: BigDecimal) = this.compareTo(other)==0
if(result equalsTo BigDecimal.ZERO){
}
I solve that problem using infix
infix fun BigDecimal.equalsTo(other: BigDecimal) = this.compareTo(other)==0
if(result equalsTo BigDecimal.ZERO){
}