Esta plantilla redondea un valor numérico a un número limitado de decimales.
Uso
{{Roundup|
valor}}
{{Roundup|
valor |
decimal}}
- Ambos parámetros pueden ser cualquier expresión numérica válida; sin embargo, los decimales deben ser un número entero.
- El parámetro decimales tiene como valor predeterminado 0.
- Los decimales pueden ser negativos para redondearse a un múltiplo de una potencia de diez.
- Se puede devolver NAN si se utilizan valores muy grandes.
Ejemplos
Nota
- Debe utilizar la función de análisis
{{#expr:ceil
value}}
en lugar de {{Roundup|
value}}
o {{Roundup|
value|0}}
. Esta plantilla solo debe utilizarse para redondear a un número de decimales distinto de cero.
Véase también