math.ceil
Arrotonda un numero per eccesso.
Firma
math.ceil(x: number): number
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
x | number | Obbligatorio | Il numero su cui lavorare. |
Restituisce
number Il numero risultante.
Esempio
const up: number = math.ceil(hp / 3);
