KMNumbers

Additional

Language
Java
Version
N/A
Created
Apr 1, 2016
Updated
Apr 10, 2016
Owner
Shootr Network (ShootrNetwork)
Contributor
Arturo (artjimlop)
1
Activity
Badge
Generate
Download
Source code

Advertisement

KMNumbers

Android library to shorten long numbers. For example: 10.000 -> 10.0K, 10.000.000 -> 10.0M.

The sample

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>

Contributors