• [^] # Re: de plus...

    Posté par . En réponse au journal Le Pourquoi Windows plante !. Évalué à 5.

    pas du tout efface.

    Extrait de la doc gnu libc :

    The `%f' conversion prints its argument in fixed-point notation, producing output of the form [-]ddd.ddd, where the number of digits following the decimal point is controlled by the precision you specify.

    et plus loin :
    Without a type modifier, the floating-point conversions use an argument of type double. (By the default argument promotions, any float arguments are automatically converted to double.)

    et man printf est d'accord :
    f,F The double argument is rounded and converted to decimal notation in the style [-]ddd.ddd, where the number of digits after the decimal-point character is equal to the precision specification.

    sinon, %g choisi automatiquement la representation la plus lisible suivant la valeur de l'argument (%f ou %e). et %lf est invalide.