Esta plantilla redondea un valor numérico a un número limitado de decimales.
Uso
{{Rounddown|
valor}}
{{Rounddown|
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 hacia abajo 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:floor
value}}
en lugar de {{Rounddown|
value}}
o {{Rounddown|
value|0}}
. Esta plantilla solo debe utilizarse cuando se redondea a una cantidad de decimales distinta de cero.
Véase también