public static String formatPercentage ( long value , long baseValue ) { double percentage = ( baseValue > 0 ? ( ONE_HUNDRED * value ) / baseValue : 0 ) ; return formatDouble ( percentage , PERCENTAGE_FORMAT_LENGTH ) ; }
Formats a percentage of two numbers and adds padding to the left .