3 implementations of FloatToBits
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
2325
static ulong IBinaryFloatParseAndFormatInfo<double>.
FloatToBits
(double value) => BitConverter.DoubleToUInt64Bits(value);
src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
2373
static ulong IBinaryFloatParseAndFormatInfo<Half>.
FloatToBits
(Half value) => BitConverter.HalfToUInt16Bits(value);
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
2241
static ulong IBinaryFloatParseAndFormatInfo<float>.
FloatToBits
(float value) => BitConverter.SingleToUInt32Bits(value);
4 references to FloatToBits
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (3)
584
Debug.Assert(((precision != -1) && (precision < TNumber.MaxRoundTripDigits)) || (TNumber.
FloatToBits
(value) == TNumber.
FloatToBits
(NumberToFloat<TNumber>(ref number))));
2539
ulong bits = TNumber.
FloatToBits
(value);
src\libraries\System.Private.CoreLib\src\System\Number.NumberToFloatingPointBits.cs (1)
1033
return TFloat.
FloatToBits
(result);