math.max
Restituisce il maggiore dei numeri.
Firma
math.max(...values: number[]): number
Parametri
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
...values | number[] | Obbligatorio | I numeri da confrontare. |
Restituisce
number Il numero risultante.
Esempio
return math.max(1, math.min(5, root + gap));
