floor
Rounds any number down to the nearest integer, always toward negative infinity, providing the exact lower whole number for positive or negative inputs.
Instructions
Round a number down to the nearest integer.
Args:
data (SingleNumberOperation): An object containing the input number a.
Returns:
Dict[str, Any]: A dictionary containing the operation result or an error message.
Notes:
- Always rounds down (e.g., 3.9 -> 3, -3.1 -> -4).
- Logs the operation and result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||