Exemplo n.º 1
0
 public static uint ParseUIntRoundingWrapping(double value)
 {
     return((uint)MoreMath.GetIntegerInRangeWrapped(value, 1.0 + uint.MaxValue - uint.MinValue, false));
 }
Exemplo n.º 2
0
 public static int ParseIntRoundingWrapping(double value)
 {
     return((int)MoreMath.GetIntegerInRangeWrapped(value, 1.0 + int.MaxValue - int.MinValue, true));
 }
Exemplo n.º 3
0
 public static sbyte ParseSByteRoundingWrapping(double value)
 {
     return((sbyte)MoreMath.GetIntegerInRangeWrapped(value, 1.0 + sbyte.MaxValue - sbyte.MinValue, true));
 }
Exemplo n.º 4
0
 public static short ParseShortRoundingWrapping(double value)
 {
     return((short)MoreMath.GetIntegerInRangeWrapped(value, 1.0 + short.MaxValue - short.MinValue, true));
 }
Exemplo n.º 5
0
 public static byte ParseByteRoundingWrapping(double value)
 {
     return((byte)MoreMath.GetIntegerInRangeWrapped(value, 1.0 + byte.MaxValue - byte.MinValue, false));
 }