Documentation Language: Swift

Function

divide(_:_:)

Divides the left value by the right value.

func divide(_ left: any EcoreValue, _ right: any EcoreValue) throws -> any EcoreValue

Parameters

left

The left operand (dividend)

right

The right operand (divisor)

Return Value

The quotient of the operands

Discussion

Supports division of numeric types with automatic type coercion. Division by zero throws an error.