https://kotlinlang.org logo
Title
u

user

07/23/2022, 4:01 PM
How to add thousands separator for calculator app. KOTLIN I have a calculator app and I want it to show large numbers with spaces between them when users enter their input. Currently, they don't have spaces between them like this: 10000; 100000; 1000000. I want them to show like this: 10 000; 100 000; 1 000 000. The second one looks much neater. Here is my code class CalculatorActivity : AppCompatActivity() { @Suppress("PrivatePropertyName") private var DigitOnScreen = StringBuilder(12) private var operation: Char = ' ' private var leftHandSide:...