Anglais Francais Prosygma 

Italie
-
    hebergement 

asp
prosygma_logo



 Divers (1)  Chaînes (31)  Dates (18)  Nombres (8)  Structures (5) 
 Tableaux (6) 
abs - cbool/(bool) - cdbl/(double) - cint/(int) - clng/(int) - int/floor - rnd/rand - round
ROUND 
Arrondit le nombre.
Si decimales n'est pas précisé, arrondit à l'entier le plus proche
ASP <Doc> 
nombre=round(nombre[,decimales])

PHP <Doc> 
$nombre=round($nombre[,$decimales]);

JavaScript <Doc> 
<script>
nombre=Math.round(nombre)

function round(n,p) {
   p=Math.pow(10,p)
   return Math.round(n*p)/p
}

nombre = round(nombre,decimales)
</script>

© ASP-PHP.net 11/01/2003