public static String formatTrimmed ( Object o , int precision , int length ) { return String . format ( getTrimmedFormat ( getFormat ( o , precision ) , length ) , o ) ; }
Returns a String representation of the given object using an appropriate format and the specified precision in case the object is a non - integer number trimmed to the specified length .