NFloat Struct

Definition

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)
Inheritance
NFloat
Implements

Constructors

NFloat(Double)

Constructs an instance from a 64-bit floating point value.

NFloat(Single)

Constructs an instance from a 32-bit floating point value.

Properties

Value

The underlying floating-point value of this instance.

Methods

Equals(NFloat)

Returns a value indicating whether this instance is equal to a specified CLong value.

Equals(Object)

Returns a value indicating whether this instance is equal to a specified object.

GetHashCode()

Returns the hash code for this instance.

ToString()

Converts the numeric value of this instance to its equivalent string representation.

Applies to