public static uint ParseUIntRoundingWrapping(double value) { return((uint)MoreMath.GetIntegerInRangeWrapped(value, 1.0 + uint.MaxValue - uint.MinValue, false)); }
public static int ParseIntRoundingWrapping(double value) { return((int)MoreMath.GetIntegerInRangeWrapped(value, 1.0 + int.MaxValue - int.MinValue, true)); }
public static sbyte ParseSByteRoundingWrapping(double value) { return((sbyte)MoreMath.GetIntegerInRangeWrapped(value, 1.0 + sbyte.MaxValue - sbyte.MinValue, true)); }
public static short ParseShortRoundingWrapping(double value) { return((short)MoreMath.GetIntegerInRangeWrapped(value, 1.0 + short.MaxValue - short.MinValue, true)); }
public static byte ParseByteRoundingWrapping(double value) { return((byte)MoreMath.GetIntegerInRangeWrapped(value, 1.0 + byte.MaxValue - byte.MinValue, false)); }