Division en html

fefe -  
 fefe -
Bonjour,
Comment afficher juste 4 chiffres après la virgule au résultat, lorsqu’on effectue une division en html ou PHP.
Configuration: Windows Vista / Firefox 3.0.13

3 réponses

  1. avion-f16 Messages postés 19182 Date d'inscription   Statut Contributeur Dernière intervention   4 511
     
    En PHP :
    <?php
    $result = 2.5 / 5.849;
    echo round($result, 4);
    ?>
    0