aspose file tools*
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 Spring in Action this week in the Spring 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Pretty prining SI units