Tuesday, April 24, 2012

Java: Format double to String with K, M, B

999 to 999
1000 to 1k



1500000 to 1.5m



and so on, I would like to not lose any precision at all



Also, need to convert them back to their original value



1.5m to 1500000
etc



The highest it would go is 11 digits max



Thanks





No comments:

Post a Comment