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
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
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
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
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
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
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
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
Returns
- bool
Whether multiplying the two numbers will result in either an overflow or an underflow.