Nodo Decimal a entero#
El nodo Decimal a entero tomará un valor numérico decimal de entrada y lo convertirá en un entero, permitiendo escoger entre varios métodos.
Entradas#
- Decimal
Entrada estándar de valor decimal.
Propiedades#
- Modo de redondeo
- Circular (o Redondez o Redondear):
Outputs the closest integer to Float, rounding either up or down based on the value.
- Piso:
Outputs the closest integer less than Float, always rounding down.
- Techo:
Outputs the closest integer greater than Float, always rounding up.
- Truncar:
Outputs the closest integer between Float and zero. For positive numbers, acts like Floor. For negative numbers, acts as Ceiling.
Salida#
- Resultado
Salida estándar de valor entero.
Ejemplos#
Valor de entrada |
Circular (o Redondez o Redondear) |
Piso |
Techo |
Truncar |
---|---|---|---|---|
-69.6574 |
-70 |
-70 |
-69 |
-69 |
-3.14159 |
-3 |
-4 |
-3 |
-3 |
-1.5 |
-2 |
-2 |
-1 |
-1 |
1.5 |
2 |
1 |
2 |
1 |
3.14159 |
3 |
3 |
4 |
3 |
69.6574 |
70 |
69 |
70 |
69 |