I am creating an app in Kotlin in android studio. I want to display values in my app so that if the number is long, let's say in millions or billions, it would truncate it and display it with a suffix, like K(thousand) M(million), etc.
For example: If the value was 331330464, it would display as 331.3 M.
Is there a dependency that allows me to do this formatting?