Les nombre à virgule: Exemple de formatage d’un nombre négatif avec ‘printf’

Author:


{filelink=6043}


public class FormatageNegatif{
  public static void main(String args[]) {
    System.out.printf("Formatage nombre négatif: %,f", -1234567.123);

  }
}
//Formatage nombre négatif: -1,234,567.123000

Leave a Reply

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