So taxRatePercent is a Double data type and taxRate accepting only Long data type,
so how we can resolve this?
val taxRate = TaxRate() taxRate.isDefault = false taxRate.name = ml + "ml" taxRate.rate = taxRatePercent.toLong().times(100000)
So taxRatePercent is a Double data type and taxRate accepting only Long data type,
so how we can resolve this?
val taxRate = TaxRate() taxRate.isDefault = false taxRate.name = ml + "ml" taxRate.rate = taxRatePercent.toLong().times(100000)
May I have more context for this question? Where are you finding taxRatePercent (what Clover object or interface are you using) and what are you trying to do?
2 People are following this question.