absolute
Calculate the absolute value of any given number. Returns the non-negative magnitude, converting negative inputs to positive values for precise arithmetic results.
Instructions
Calculate the absolute value of a given number.
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:
- Returns the absolute (non-negative) value of the input.
- Logs the operation and result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||