Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
NFloat is an immutable value type that represents a floating type that has the same size as the native integer size.
It is meant to be used as an exchange type at the managed/unmanaged boundary to accurately represent in managed code unmanaged APIs that use a type alias for C or C++'s
float on 32-bit platforms or
double on 64-bit platforms, such as the CGFloat type in libraries provided by Apple.
public value class NFloat : IEquatable<System::Runtime::InteropServices::NFloat>
public struct NFloat : IEquatable<System.Runtime.InteropServices.NFloat>
type NFloat = struct
Public Structure NFloat Implements IEquatable(Of NFloat)
Constructs an instance from a 64-bit floating point value.
Constructs an instance from a 32-bit floating point value.
The underlying floating-point value of this instance.
Returns a value indicating whether this instance is equal to a specified CLong value.
Returns a value indicating whether this instance is equal to a specified object.
Returns the hash code for this instance.
Converts the numeric value of this instance to its equivalent string representation.