ConstReturns the absolute value of a 16-bit signed integer.
Adds two Int16 values.
Clamps a number to the Int16 range.
Divides one Int16 by another using floor division.
Type guard to check if a value is an Int16.
Readonlymax: (...values: readonly WithSmallInt<Int16, 40>[]) => Int16Returns the larger of two Int16 values.
ReadonlyMAX_VALUE: numberThe maximum value for a 16-bit signed integer.
Readonlymin: (...values: readonly WithSmallInt<Int16, 40>[]) => Int16Returns the smaller of two Int16 values.
ReadonlyMIN_VALUE: numberThe minimum value for a 16-bit signed integer.
Multiplies two Int16 values.
Raises an Int16 to the power of another Int16.
Generates a random Int16 value within the valid range.
Subtracts one Int16 from another.
Namespace providing type-safe arithmetic operations for 16-bit signed integers.
All operations automatically clamp results to the valid Int16 range [-32768, 32767]. This ensures that all arithmetic maintains the 16-bit signed integer constraint.