divide
Divide one number by another to calculate the quotient. Handles division operations while preventing division by zero errors.
Instructions
Divide the first number by the second number.
Args:
a: The dividend (number to be divided)
b: The divisor (number to divide by)
Returns:
The quotient of a divided by b (a / b)
Raises:
ValueError: If b is zero (division by zero)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |
Input Schema (JSON Schema)
{
"properties": {
"a": {
"title": "A",
"type": "number"
},
"b": {
"title": "B",
"type": "number"
}
},
"required": [
"a",
"b"
],
"type": "object"
}