12 references to CreateTruncating
System.Private.CoreLib (12)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (7)
3327UInt128 significand = UInt128.CreateTruncating(decoded.Significand); 3382UInt128 maxMagnitude = UInt128.CreateTruncating(TInteger.MaxValue); 3471UInt128 bits = UInt128.CreateTruncating(value); 3480if (magnitude <= UInt128.CreateTruncating(TDecimal.MaxSignificand)) 3570UInt128 magnitude = UInt128.CreateTruncating(decoded.Significand); 3637UInt128 magnitude = UInt128.CreateTruncating(decoded.Significand); 3763UInt128 magnitude = UInt128.CreateTruncating(decoded.Significand);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128Conversions.cs (4)
57DiyFp128 pow = DiyFp128FromUInt128(UInt128.CreateTruncating(TDecimal.Power10(chunk)), 0); 85DiyFp128 value = DiyFp128FromUInt128(UInt128.CreateTruncating(significand), signed ? UxSignBit : 0); 117UInt128 pow10P = UInt128.CreateTruncating(TDecimal.MaxSignificand); 119UInt128 pow10Pm1 = UInt128.CreateTruncating(TDecimal.Power10(precision - 1)); // 10^(P-1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.Transcendental.cs (1)
968UInt128 coefficient = UInt128.CreateTruncating(decoded.Significand);