Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
struct System.​Numerics.​IFloatingPoint`1
Assembly: System.Runtime
Defines a floating-point type.
Methods
public
int
GetExponentByteCount​() Returns The number of bytes that will be written as part of <see cref="M:System.Numerics.IFloatingPoint`1.TryWriteExponentLittleEndian(System.Span{System.Byte},System.Int32@)" /> .
Gets the number of bytes that will be written as part of <see cref="M:System.Numerics.IFloatingPoint`1.TryWriteExponentLittleEndian(System.Span{System.Byte},System.Int32@)" /> .
public
int
GetExponentShortestBitLength​() Returns The length, in bits, of the shortest two's complement representation of the current exponent.
Gets the length, in bits, of the shortest two's complement representation of the current exponent.
public
int
GetSignificandBitLength​() Returns The length, in bits, of the current significand.
Gets the length, in bits, of the current significand.
public
int
GetSignificandByteCount​() Returns The number of bytes that will be written as part of <see cref="M:System.Numerics.IFloatingPoint`1.TryWriteSignificandLittleEndian(System.Span{System.Byte},System.Int32@)" /> .
Gets the number of bytes that will be written as part of <see cref="M:System.Numerics.IFloatingPoint`1.TryWriteSignificandLittleEndian(System.Span{System.Byte},System.Int32@)" /> .
public
bool
TryWriteSignificandLittleEndian​(Span`1 destination,
Int32& bytesWritten)
public
int
WriteExponentBigEndian​(byte[] destination)
destination
The array to which the current exponent should be written.
Returns The number of bytes written to <paramref name="destination" /> .
Writes the current exponent, in big-endian format, to a given array.
public
int
WriteExponentBigEndian​(byte[] destination,
int startIndex)
destination
The array to which the current exponent should be written.
startIndex
The starting index at which the exponent should be written.
Returns The number of bytes written to <paramref name="destination" /> starting at <paramref name="startIndex" /> .
Writes the current exponent, in big-endian format, to a given array.
public
int
WriteExponentLittleEndian​(byte[] destination)
destination
The array to which the current exponent should be written.
Returns The number of bytes written to <paramref name="destination" /> .
Writes the current exponent, in little-endian format, to a given array.
public
int
WriteExponentLittleEndian​(byte[] destination,
int startIndex)
destination
The array to which the current exponent should be written.
startIndex
The starting index at which the exponent should be written.
Returns The number of bytes written to <paramref name="destination" /> starting at <paramref name="startIndex" /> .
Writes the current exponent, in little-endian format, to a given array.
public
int
WriteSignificandBigEndian​(byte[] destination)
destination
The array to which the current significand should be written.
Returns The number of bytes written to <paramref name="destination" /> .
Writes the current significand, in big-endian format, to a given array.
public
int
WriteSignificandBigEndian​(byte[] destination,
int startIndex)
destination
The array to which the current significand should be written.
startIndex
The starting index at which the significand should be written.
Returns The number of bytes written to <paramref name="destination" /> starting at <paramref name="startIndex" /> .
Writes the current significand, in big-endian format, to a given array.
public
int
WriteSignificandLittleEndian​(byte[] destination)
destination
The array to which the current significand should be written.
Returns The number of bytes written to <paramref name="destination" /> .
Writes the current significand, in little-endian format, to a given array.
public
int
WriteSignificandLittleEndian​(byte[] destination,
int startIndex)
destination
The array to which the current significand should be written.
startIndex
The starting index at which the significand should be written.
Returns The number of bytes written to <paramref name="destination" /> starting at <paramref name="startIndex" /> .
Writes the current significand, in little-endian format, to a given array.