21 references to ToPositiveInfinity
System.Numerics.Tensors (2)
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (2)
70
case MidpointRounding.
ToPositiveInfinity
:
121
if ((uint)mode > (uint)MidpointRounding.
ToPositiveInfinity
)
System.Private.CoreLib (19)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (2)
401
DecCalc.InternalRound(ref AsMutable(ref d), (byte)(flags >> ScaleShift), MidpointRounding.
ToPositiveInfinity
);
682
if ((uint)mode > (uint)MidpointRounding.
ToPositiveInfinity
)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.DecCalc.cs (1)
2498
Debug.Assert(mode == MidpointRounding.
ToPositiveInfinity
);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Math.cs (2)
1394
case MidpointRounding.
ToPositiveInfinity
:
1411
if ((uint)mode > (uint)MidpointRounding.
ToPositiveInfinity
)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MathF.cs (2)
418
case MidpointRounding.
ToPositiveInfinity
:
435
if ((uint)mode > (uint)MidpointRounding.
ToPositiveInfinity
)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (2)
1937
if ((uint)mode > (uint)MidpointRounding.
ToPositiveInfinity
)
2009
MidpointRounding.
ToPositiveInfinity
=> discardedNonZero && !a.Signed,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Rounding.cs (4)
25
Debug.Assert((uint)mode <= (uint)MidpointRounding.
ToPositiveInfinity
);
37
Debug.Assert((uint)mode <= (uint)MidpointRounding.
ToPositiveInfinity
);
262
MidpointRounding.
ToPositiveInfinity
=> !isNegative && hasRemainder,
373
case MidpointRounding.
ToPositiveInfinity
:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (1)
817
public 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)
828
public 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)
821
public 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)
17
static 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)
1890
case MidpointRounding.
ToPositiveInfinity
:
1936
case MidpointRounding.
ToPositiveInfinity
: