Vorrei cambiare il font e il colore solo a "KB", "MB", e "GB", che codice si usa?
codice:<%! import java.text.DecimalFormat; String formatNumber(long num) { if (num < 1024) return "" + num; DecimalFormat twoDec = new DecimalFormat("#"); if (num < 1024*1024) return twoDec.format((float)num/1024) + " KB " ; DecimalFormat twoDec = new DecimalFormat("#.##"); if (num < 1024*1024*1024) return twoDec.format((float)num/1024/1024) + " MB "; return twoDec.format((float)num/1024/1024/1024) + " GB "; } %>