Android library to shorten long numbers. For example: 10.000 -> 10.0K, 10.000.000 -> 10.0M.
KMNumbers.formatNumbers(1000L); // should return 1000,
KMNumbers.formatNumbers(10000L); // should return 10.0K,
KMNumbers.formatNumbers(1000000L); // should return 1.0M,
KMNumbers.formatNumbers(10000000L); // should return 10.0M.
#Download
- Grab via Gradle:
compile 'com.shootr:KMNumbers:1.0.0'
- Grab via Maven:
<dependency>
<groupId>com.shootr</groupId>
<artifactId>KMNumbers</artifactId>
<version>1.0.0</version>
<type>pom</type>
</dependency>
- Development: Arturo Jiménez (@artjimlop), Jorge Martínez (@jmartinez360)