La méthode ‘printf’: Afficher seulement 2 chiffre après la virgule

Author:


Download

public class Decimal2 {
  public static void main(String[] argv) throws Exception {
 
    System.out.printf("Deux chiffres apr�s la virgule: %.2f", 65.0 / 3.0);
  }
}