the first problem is can not multiply 2 numbers even 3 of them like python
the second problem, I did something I got a result in my text view but it shows decimal numbers like if i expect 12000$ downpayment, it shows 120.0000000 downpayment
At first glance your problem is that your variable types are unclear. In Kotlin there is no such type as “textNumber”.
In Python you can multiply a string with a number but in Kotlin that is not allowed, you have to convert the text into a number.
There are conversion methods like:
"123".toInt()
"123.456".toDouble()
These basic conversions work fine in simple use cases.
However, if you would like to have exact calculation rules (and in a financial application you should have), have a look at BigDecimal. This class provides exact controls over rounding and precision.
As for formatting, there are easy and good solutions. The good one is DecimalFormat which gives you exact control on the number formatting.
I assumed you are writing a mobile application. Kotlin/JS does not have BigDecimal and DecimalFormat as far as I know, there you have to pick a JavaScript library that performs the formatting.