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

Author:


{filelink=6010}

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);
  }
}

Leave a Reply

Your email address will not be published. Required fields are marked *