4 implementations of FloatToBits
System.Private.CoreLib (4)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
2591
static ulong IBinaryFloatParseAndFormatInfo<double>.
FloatToBits
(double value) => BitConverter.DoubleToUInt64Bits(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
2434
static ulong IBinaryFloatParseAndFormatInfo<Half>.
FloatToBits
(Half value) => BitConverter.HalfToUInt16Bits(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
2159
static ulong IBinaryFloatParseAndFormatInfo<BFloat16>.
FloatToBits
(BFloat16 value) => value._value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
2279
static ulong IBinaryFloatParseAndFormatInfo<float>.
FloatToBits
(float value) => BitConverter.SingleToUInt32Bits(value);
5 references to FloatToBits
System.Private.CoreLib (5)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.DecCalc.cs (1)
1632
ulong bits = TNumber.
FloatToBits
(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (3)
1070
Debug.Assert(((precision != -1) && (precision < TNumber.MaxRoundTripDigits)) || (TNumber.
FloatToBits
(value) == TNumber.
FloatToBits
(NumberToFloat<TNumber>(ref number))));
3025
ulong bits = TNumber.
FloatToBits
(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.NumberToFloatingPointBits.cs (1)
1024
bits = TFloat.
FloatToBits
(TFloat.CreateSaturating(mantissa_d));