iOS Guides | Samples

System.nfloat Structure

Native floating point (single precision on 32-bit platforms, double precision on 64-bit platforms)

See Also: nfloat

Syntax

[System.Diagnostics.DebuggerDisplay("{v,nq}")]
public struct nfloat : IComparable, IComparable<nfloat>, IConvertible, IEquatable<nfloat>, IFormattable

Remarks

This data type is a floating point value that uses the natural size of the host architecture to store its value.  On 32-bit systems, this uses Single for storage and on 64-bit systems it uses Double for storage.  

As an optimization, the compiler and runtime have special knowledge of this data type, so while there is no dedicated set of IL instructions to deal with variable-size floating point values, the runtime will transform uses of nfloat into their native underlying representation transparently.

This type is defined in lowercase because it makes it feel like a C# data type when used in C# source code.

Requirements

Namespace: System
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of System.nfloat are listed below.

See Also: ValueType

Public Constructors

Initializes an nfloat from a double value.   On 32 bit platforms, this might be a lossy initialization.
Initializes an nfloat from a float value.

Public Fields

static readonly
Epsilonnfloat. Represents the smallest positive nfloat value that is greater than zero. This field is constant.
static readonly
MaxValuenfloat. Represents the largest possible value of a nfloat. This field is constant.
static readonly
MinValuenfloat. Represents the smallest possible value of a Double. This field is constant.
static readonly
NaNnfloat.
static readonly
NegativeInfinitynfloat.
static readonly
PositiveInfinitynfloat.
static readonly
SizeInt32.

Public Methods

CompareTo(nfloat) : Int32

Compares this instance to a specified nfloat floating-point number and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified nfloat floating-point number.

CompareTo(Object) : Int32
Compares this instance to a specified object and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified object.
static
CopyArray(IntPtr, nfloat[], Int32, Int32)
static
CopyArray(nfloat[], Int32, IntPtr, Int32)
Equals(nfloat) : Boolean
Returns a value indicating whether this instance and a specified nfloat object represent the same value.
override
Equals(Object) : Boolean
Returns a value indicating whether this instance is equal to a specified object.
override
GetHashCode() : Int32
GetTypeCode() : TypeCode
Returns the TypeCode for the underlying storage on this platform, either the typecode for Double or the typecode for Single.
static
IsInfinity(nfloat) : Boolean
Returns a value indicating whether the specified number evaluates to negative or positive infinity.
static
IsNaN(nfloat) : Boolean
Returns a value that indicates whether the specified value is not a number (nfloat.NaN).
static
IsNegativeInfinity(nfloat) : Boolean
static
IsPositiveInfinity(nfloat) : Boolean
static
Parse(String) : nfloat
Converts the string representation of a number to its double-precision floating-point number equivalent.
static
Parse(String, NumberStyles) : nfloat
static
Parse(String, IFormatProvider) : nfloat
Converts the string representation of a number in a specified culture-specific format to its double-precision floating-point number equivalent.
static
Parse(String, NumberStyles, IFormatProvider) : nfloat
override
ToString() : String
ToString(IFormatProvider) : String
ToString(String) : String
ToString(String, IFormatProvider) : String
static
TryParse(String, out nfloat) : Boolean
static
TryParse(String, NumberStyles, IFormatProvider, out nfloat) : Boolean

Public Operators

static
Addition(nfloat, nfloat)
static
Decrement
static
Division(nfloat, nfloat)
static
Equality(nfloat, nfloat)
static
GreaterThan(nfloat, nfloat)
static
GreaterThanOrEqual(nfloat, nfloat)
static
Increment
static
Inequality(nfloat, nfloat)
static
LessThan(nfloat, nfloat)
static
LessThanOrEqual(nfloat, nfloat)
static
Modulus(nfloat, nfloat)
static
Multiply(nfloat, nfloat)
static
Subtraction(nfloat, nfloat)
static
UnaryNegation
static
UnaryPlus
static
Conversion to System.nfloat(Explicit)
static
Conversion to System.nfloat(Explicit)
static
Conversion to System.nfloat(Explicit)
static
Conversion to System.Byte(Explicit)
static
Conversion to System.Char(Explicit)
static
Conversion to System.Decimal(Explicit)
static
Conversion to System.Int16(Explicit)
static
Conversion to System.Int32(Explicit)
static
Conversion to System.Int64(Explicit)
static
Conversion to System.IntPtr(Explicit)
static
Conversion to System.SByte(Explicit)
static
Conversion to System.Single(Explicit)
static
Conversion to System.UInt16(Explicit)
static
Conversion to System.UInt32(Explicit)
static
Conversion to System.UInt64(Explicit)
static
Conversion to System.nfloat(Implicit)
static
Conversion to System.nfloat(Implicit)
static
Conversion to System.nfloat(Implicit)
static
Conversion to System.nfloat(Implicit)
static
Conversion to System.nfloat(Implicit)
static
Conversion to System.Double(Implicit)
static
Conversion to System.nfloat(Implicit)
static
Conversion to System.nfloat(Implicit)
static
Conversion to System.nfloat(Implicit)
static
Conversion to System.nfloat(Implicit)
static
Conversion to System.nfloat(Implicit)

Explicitly Implemented Interface Members