21 references to ToPositiveInfinity
System.Numerics.Tensors (2)
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (2)
70case MidpointRounding.ToPositiveInfinity: 121if ((uint)mode > (uint)MidpointRounding.ToPositiveInfinity)
System.Private.CoreLib (19)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (2)
401DecCalc.InternalRound(ref AsMutable(ref d), (byte)(flags >> ScaleShift), MidpointRounding.ToPositiveInfinity); 682if ((uint)mode > (uint)MidpointRounding.ToPositiveInfinity)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.DecCalc.cs (1)
2498Debug.Assert(mode == MidpointRounding.ToPositiveInfinity);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Math.cs (2)
1394case MidpointRounding.ToPositiveInfinity: 1411if ((uint)mode > (uint)MidpointRounding.ToPositiveInfinity)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MathF.cs (2)
418case MidpointRounding.ToPositiveInfinity: 435if ((uint)mode > (uint)MidpointRounding.ToPositiveInfinity)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (2)
1937if ((uint)mode > (uint)MidpointRounding.ToPositiveInfinity) 2009MidpointRounding.ToPositiveInfinity => discardedNonZero && !a.Signed,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Rounding.cs (4)
25Debug.Assert((uint)mode <= (uint)MidpointRounding.ToPositiveInfinity); 37Debug.Assert((uint)mode <= (uint)MidpointRounding.ToPositiveInfinity); 262MidpointRounding.ToPositiveInfinity => !isNegative && hasRemainder, 373case MidpointRounding.ToPositiveInfinity:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (1)
817public static Decimal128 Ceiling(Decimal128 x) => new Decimal128(Number.RoundDecimalIeee754<Decimal128, UInt128>(new UInt128(x._upper, x._lower), 0, MidpointRounding.ToPositiveInfinity));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (1)
828public static Decimal32 Ceiling(Decimal32 x) => new Decimal32(Number.RoundDecimalIeee754<Decimal32, uint>(x._value, 0, MidpointRounding.ToPositiveInfinity));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (1)
821public static Decimal64 Ceiling(Decimal64 x) => new Decimal64(Number.RoundDecimalIeee754<Decimal64, ulong>(x._value, 0, MidpointRounding.ToPositiveInfinity));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\IFloatingPoint.cs (1)
17static virtual TSelf Ceiling(TSelf x) => TSelf.Round(x, digits: 0, MidpointRounding.ToPositiveInfinity);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\VectorMath.cs (2)
1890case MidpointRounding.ToPositiveInfinity: 1936case MidpointRounding.ToPositiveInfinity: