Redondeig amb php

By yuanga

Per redondejar nombres decimals:

<? round(nombre_decimal) ?>

Així, round(0.6) retornaria el nombre enter 1, i round(7.3) retornaria el nombre enter 7.

Deixa un comentari