Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

Divide

static func Divide(dividend: int, divisor: int) -> Result<int, IntegerDivisionError>

Declaring type: Int32
Module: System
Assembly: System.Runtime.dll
Source file: Int32.rvn

Divides two signed integers, returning DivisionByZero or Overflow for invalid division.

Parameters

Name Type Description
dividend Int32
divisor Int32

Return value

Result<Int32, IntegerDivisionError>