15 references to ToZero
System.Numerics.Tensors (1)
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (1)
62case MidpointRounding.ToZero:
System.Private.CoreLib (14)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
892DecCalc.InternalRound(ref AsMutable(ref d), (byte)(flags >> ScaleShift), MidpointRounding.ToZero);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.DecCalc.cs (2)
2443if (mode <= MidpointRounding.ToZero) 2472if (mode == MidpointRounding.ToZero)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
1388case MidpointRounding.ToZero:
src\runtime\src\libraries\System.Private.CoreLib\src\System\MathF.cs (1)
412case MidpointRounding.ToZero:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (1)
2007MidpointRounding.ToZero => false,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Rounding.cs (2)
260MidpointRounding.ToZero => false, 363case MidpointRounding.ToZero:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (1)
843public static Decimal128 Truncate(Decimal128 x) => new Decimal128(Number.RoundDecimalIeee754<Decimal128, UInt128>(new UInt128(x._upper, x._lower), 0, MidpointRounding.ToZero));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (1)
854public static Decimal32 Truncate(Decimal32 x) => new Decimal32(Number.RoundDecimalIeee754<Decimal32, uint>(x._value, 0, MidpointRounding.ToZero));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (1)
847public static Decimal64 Truncate(Decimal64 x) => new Decimal64(Number.RoundDecimalIeee754<Decimal64, ulong>(x._value, 0, MidpointRounding.ToZero));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\IFloatingPoint.cs (1)
71static virtual TSelf Truncate(TSelf x) => TSelf.Round(x, digits: 0, MidpointRounding.ToZero);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\VectorMath.cs (2)
1878case MidpointRounding.ToZero: 1924case MidpointRounding.ToZero: