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

API Browser

Operator

op_Subtraction

static func -(left: ushort, right: ushort) -> ushort

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

Development: Subtracts right from left.

Parameters

Name Type Description
left UInt16 The left operand.
right UInt16 The right operand.

Return value

UInt16

A value of the same numeric type.

Remarks

Integer addition/subtraction/multiplication wrap; integer division truncates toward zero and invalid division raises terminal Fault. Floating operations retain IEEE behavior. This is not checked Result-returning arithmetic.