Float To Integer Node¶
The Float To Integer node takes a single floating point number input and converts it to an integer with a choice of methods.
入力¶
- Float
Standard float value input.
Properties(プロパティ)¶
- Rounding Mode
- Round(丸め):
Outputs the closest integer to Float, rounding either up or down based on the value.
- Floor(床):
Outputs the closest integer less than Float, always rounding down.
- Ceiling:
Outputs the closest integer greater than Float, always rounding up.
- Truncate(切り捨て):
Outputs the closest integer between Float and zero. For positive numbers, acts like Floor. For negative numbers, acts as Ceiling.
Output(出力)¶
- Result(結果)
Standard integer output.
例¶
Input Value |
Round(丸め) |
Floor(床) |
Ceiling |
Truncate(切り捨て) |
---|---|---|---|---|
-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 |