15 references to ToZero
System.Numerics.Tensors (1)
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (1)
62
case MidpointRounding.
ToZero
:
System.Private.CoreLib (14)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
892
DecCalc.InternalRound(ref AsMutable(ref d), (byte)(flags >> ScaleShift), MidpointRounding.
ToZero
);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.DecCalc.cs (2)
2443
if (mode <= MidpointRounding.
ToZero
)
2472
if (mode == MidpointRounding.
ToZero
)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
1388
case MidpointRounding.
ToZero
:
src\runtime\src\libraries\System.Private.CoreLib\src\System\MathF.cs (1)
412
case MidpointRounding.
ToZero
:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (1)
2007
MidpointRounding.
ToZero
=> false,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Rounding.cs (2)
260
MidpointRounding.
ToZero
=> false,
363
case MidpointRounding.
ToZero
:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (1)
843
public 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)
854
public 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)
847
public 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)
71
static 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)
1878
case MidpointRounding.
ToZero
:
1924
case MidpointRounding.
ToZero
: