This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Pretty prining SI units Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Pretty prining SI units" Watch "Pretty prining SI units" New topic
Author

Pretty prining SI units

Dmitri Bichko
Greenhorn

Joined: Jun 16, 2007
Posts: 15
Hi,

Anyone know of a library that will convert values to "human readable" SI prefixes (similar to -h for many GNU file utilities)? For example: ".0000001 M" -> "100 nM", ".00001 M" -> "10 �M", etc.

Simple enough to do, but I'd rather not reinvent the wheel.

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pretty prining SI units