NFloat.Explicit Operator

Definition

Overloads

Explicit(NFloat to UIntPtr)

Explicitly converts a native-sized floating-point value to its nearest representable UIntPtr value.

Explicit(NFloat to UInt64)

Explicitly converts a native-sized floating-point value to its nearest representable UInt64 value.

Explicit(NFloat to UInt32)

Explicitly converts a native-sized floating-point value to its nearest representable UInt32 value.

Explicit(NFloat to UInt16)

Explicitly converts a native-sized floating-point value to its nearest representable UInt16 value.

Explicit(NFloat to UInt128)

Explicitly converts a native-sized floating-point value to its nearest representable UInt128 value.

Explicit(NFloat to Single)

Explicitly converts a native-sized floating-point value to its nearest representable Single value.

Explicit(NFloat to SByte)

Explicitly converts a native-sized floating-point value to its nearest representable SByte value.

Explicit(NFloat to IntPtr)

Explicitly converts a native-sized floating-point value to its nearest representable IntPtr value.

Explicit(NFloat to Int64)

Explicitly converts a native-sized floating-point value to its nearest representable Int64 value.

Explicit(UInt128 to NFloat)

Explicitly converts UInt128 to its nearest representable native-sized floating-point value.

Explicit(NFloat to Int16)

Explicitly converts a native-sized floating-point value to its nearest representable Int16 value.

Explicit(Decimal to NFloat)

Explicitly converts a Decimal value to its nearest representable native-sized floating-point value.

Explicit(Double to NFloat)

Explicitly converts a Double value to its nearest representable native-sized floating-point value.

Explicit(Int128 to NFloat)

Explicitly converts a Int128 to its nearest representable native-sized floating-point value.

Explicit(NFloat to Byte)

Explicitly converts a native-sized floating-point value to its nearest representable Byte value.

Explicit(NFloat to Int32)

Explicitly converts a native-sized floating-point value to its nearest representable Int32 value.

Explicit(NFloat to Decimal)

Explicitly converts a native-sized floating-point value to its nearest representable Decimal value.

Explicit(NFloat to Half)

Explicitly converts a native-sized floating-point value to its nearest representable Half value.

Explicit(NFloat to Int128)

Explicitly converts a native-sized floating-point value to its nearest representable Int128 value.

Explicit(NFloat to Char)

Explicitly converts a native-sized floating-point value to its nearest representable Char value.

Explicit(NFloat to UIntPtr)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

Important

This API is not CLS-compliant.

Explicitly converts a native-sized floating-point value to its nearest representable UIntPtr value.

C#
[System.CLSCompliant(false)]
public static explicit operator UIntPtr(System.Runtime.InteropServices.NFloat value);

Parameters

value
NFloat

The value to convert.

Returns

UIntPtr

value converted to its nearest representable UIntPtr value.

Attributes

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10

Explicit(NFloat to UInt64)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

Important

This API is not CLS-compliant.

Explicitly converts a native-sized floating-point value to its nearest representable UInt64 value.

C#
[System.CLSCompliant(false)]
public static explicit operator ulong(System.Runtime.InteropServices.NFloat value);

Parameters

value
NFloat

The value to convert.

Returns

value converted to its nearest representable UInt64 value.

Attributes

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10

Explicit(NFloat to UInt32)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

Important

This API is not CLS-compliant.

Explicitly converts a native-sized floating-point value to its nearest representable UInt32 value.

C#
[System.CLSCompliant(false)]
public static explicit operator uint(System.Runtime.InteropServices.NFloat value);

Parameters

value
NFloat

The value to convert.

Returns

value converted to its nearest representable UInt32 value.

Attributes

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10

Explicit(NFloat to UInt16)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

Important

This API is not CLS-compliant.

Explicitly converts a native-sized floating-point value to its nearest representable UInt16 value.

C#
[System.CLSCompliant(false)]
public static explicit operator ushort(System.Runtime.InteropServices.NFloat value);

Parameters

value
NFloat

The value to convert.

Returns

value converted to its nearest representable UInt16 value.

Attributes

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10

Explicit(NFloat to UInt128)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

Important

This API is not CLS-compliant.

Explicitly converts a native-sized floating-point value to its nearest representable UInt128 value.

C#
[System.CLSCompliant(false)]
public static explicit operator UInt128(System.Runtime.InteropServices.NFloat value);

Parameters

value
NFloat

The value to convert.

Returns

value converted to its nearest representable UInt128 value.

Attributes

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10

Explicit(NFloat to Single)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

Explicitly converts a native-sized floating-point value to its nearest representable Single value.

C#
public static explicit operator float(System.Runtime.InteropServices.NFloat value);

Parameters

value
NFloat

The value to convert.

Returns

value converted to its nearest representable Single value.

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10

Explicit(NFloat to SByte)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

Important

This API is not CLS-compliant.

Explicitly converts a native-sized floating-point value to its nearest representable SByte value.

C#
[System.CLSCompliant(false)]
public static explicit operator sbyte(System.Runtime.InteropServices.NFloat value);

Parameters

value
NFloat

The value to convert.

Returns

value converted to its nearest representable SByte value.

Attributes

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10

Explicit(NFloat to IntPtr)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

Explicitly converts a native-sized floating-point value to its nearest representable IntPtr value.

C#
public static explicit operator IntPtr(System.Runtime.InteropServices.NFloat value);

Parameters

value
NFloat

The value to convert.

Returns

IntPtr

value converted to its nearest representable IntPtr value.

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10

Explicit(NFloat to Int64)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

Explicitly converts a native-sized floating-point value to its nearest representable Int64 value.

C#
public static explicit operator long(System.Runtime.InteropServices.NFloat value);

Parameters

value
NFloat

The value to convert.

Returns

value converted to its nearest representable Int64 value.

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10

Explicit(UInt128 to NFloat)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

Important

This API is not CLS-compliant.

Explicitly converts UInt128 to its nearest representable native-sized floating-point value.

C#
[System.CLSCompliant(false)]
public static explicit operator System.Runtime.InteropServices.NFloat(UInt128 value);

Parameters

value
UInt128

The value to convert.

Returns

value converted to its nearest representable native-sized floating-point value.

Attributes

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10

Explicit(NFloat to Int16)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

Explicitly converts a native-sized floating-point value to its nearest representable Int16 value.

C#
public static explicit operator short(System.Runtime.InteropServices.NFloat value);

Parameters

value
NFloat

The value to convert.

Returns

value converted to its nearest representable Int16 value.

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10

Explicit(Decimal to NFloat)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

Explicitly converts a Decimal value to its nearest representable native-sized floating-point value.

C#
public static explicit operator System.Runtime.InteropServices.NFloat(decimal value);

Parameters

value
Decimal

The value to convert.

Returns

value converted to its nearest representable native-sized floating-point value.

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10

Explicit(Double to NFloat)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

Explicitly converts a Double value to its nearest representable native-sized floating-point value.

C#
public static explicit operator System.Runtime.InteropServices.NFloat(double value);

Parameters

value
Double

The value to convert.

Returns

value converted to its nearest representable native-sized floating-point value.

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10

Explicit(Int128 to NFloat)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

Explicitly converts a Int128 to its nearest representable native-sized floating-point value.

C#
public static explicit operator System.Runtime.InteropServices.NFloat(Int128 value);

Parameters

value
Int128

The value to convert.

Returns

value converted to its nearest representable native-sized floating-point value.

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10

Explicit(NFloat to Byte)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

Explicitly converts a native-sized floating-point value to its nearest representable Byte value.

C#
public static explicit operator byte(System.Runtime.InteropServices.NFloat value);

Parameters

value
NFloat

The value to convert.

Returns

value converted to its nearest representable Byte value.

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10

Explicit(NFloat to Int32)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

Explicitly converts a native-sized floating-point value to its nearest representable Int32 value.

C#
public static explicit operator int(System.Runtime.InteropServices.NFloat value);

Parameters

value
NFloat

The value to convert.

Returns

value converted to its nearest representable Int32 value.

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10

Explicit(NFloat to Decimal)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

Explicitly converts a native-sized floating-point value to its nearest representable Decimal value.

C#
public static explicit operator decimal(System.Runtime.InteropServices.NFloat value);

Parameters

value
NFloat

The value to convert.

Returns

value converted to its nearest representable Decimal value.

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10

Explicit(NFloat to Half)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

Explicitly converts a native-sized floating-point value to its nearest representable Half value.

C#
public static explicit operator Half(System.Runtime.InteropServices.NFloat value);

Parameters

value
NFloat

The value to convert.

Returns

value converted to its nearest representable Half value.

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10

Explicit(NFloat to Int128)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

Explicitly converts a native-sized floating-point value to its nearest representable Int128 value.

C#
public static explicit operator Int128(System.Runtime.InteropServices.NFloat value);

Parameters

value
NFloat

The value to convert.

Returns

value converted to its nearest representable Int128 value.

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10

Explicit(NFloat to Char)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

Explicitly converts a native-sized floating-point value to its nearest representable Char value.

C#
public static explicit operator char(System.Runtime.InteropServices.NFloat value);

Parameters

value
NFloat

The value to convert.

Returns

value converted to its nearest representable Char value.

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10