Table of Contents

Class Overflowing

Namespace
Garyon.Mathematics
Assembly
Garyon.dll

Contains functions related to overflowing or underflowing.

public static class Overflowing
Inheritance
Overflowing
Inherited Members

Methods

CheckIfAdditionOverflows(int, int)

Determines whether adding two numbers will result in either an overflow or an underflow.

public static bool CheckIfAdditionOverflows(int x, int y)

Parameters

x int

The one value to add.

y int

The other value to add.

Returns

bool

Whether adding the two numbers will result in either an overflow or an underflow.

CheckIfAdditionOverflows(long, long)

Determines whether adding two numbers will result in either an overflow or an underflow.

public static bool CheckIfAdditionOverflows(long x, long y)

Parameters

x long

The one value to add.

y long

The other value to add.

Returns

bool

Whether adding the two numbers will result in either an overflow or an underflow.

CheckIfAdditionOverflows(uint, uint)

Determines whether adding two numbers will result in either an overflow or an underflow.

public static bool CheckIfAdditionOverflows(uint x, uint y)

Parameters

x uint

The one value to add.

y uint

The other value to add.

Returns

bool

Whether adding the two numbers will result in either an overflow or an underflow.

CheckIfAdditionOverflows(ulong, ulong)

Determines whether adding two numbers will result in either an overflow or an underflow.

public static bool CheckIfAdditionOverflows(ulong x, ulong y)

Parameters

x ulong

The one value to add.

y ulong

The other value to add.

Returns

bool

Whether adding the two numbers will result in either an overflow or an underflow.

CheckIfMultiplicationOverflows(int, int)

Determines whether multiplying two numbers will result in either an overflow or an underflow.

public static bool CheckIfMultiplicationOverflows(int x, int y)

Parameters

x int

The one value to add.

y int

The other value to add.

Returns

bool

Whether multiplying the two numbers will result in either an overflow or an underflow.

CheckIfMultiplicationOverflows(long, long)

Determines whether multiplying two numbers will result in either an overflow or an underflow.

public static bool CheckIfMultiplicationOverflows(long x, long y)

Parameters

x long

The one value to add.

y long

The other value to add.

Returns

bool

Whether multiplying the two numbers will result in either an overflow or an underflow.

CheckIfMultiplicationOverflows(uint, uint)

Determines whether multiplying two numbers will result in either an overflow or an underflow.

public static bool CheckIfMultiplicationOverflows(uint x, uint y)

Parameters

x uint

The one value to add.

y uint

The other value to add.

Returns

bool

Whether multiplying the two numbers will result in either an overflow or an underflow.

CheckIfMultiplicationOverflows(ulong, ulong)

Determines whether multiplying two numbers will result in either an overflow or an underflow.

public static bool CheckIfMultiplicationOverflows(ulong x, ulong y)

Parameters

x ulong

The one value to add.

y ulong

The other value to add.

Returns

bool

Whether multiplying the two numbers will result in either an overflow or an underflow.