NFloat.Explicit Operator
Definition
Important
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.
Overloads
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(NFloat to Int32) |
Explicitly converts a native-sized floating-point value to its nearest representable Int32 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 UIntPtr) |
Explicitly converts a native-sized floating-point value to its nearest representable UIntPtr value. |
Explicit(NFloat to Decimal) |
Explicitly converts a native-sized floating-point value to its nearest representable Decimal value. |
Explicit(NFloat to Char) |
Explicitly converts a native-sized floating-point value to its nearest representable Char value. |
Explicit(NFloat to Byte) |
Explicitly converts a native-sized floating-point value to its nearest representable Byte value. |
Explicit(Int128 to NFloat) |
Explicitly converts a Int128 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(Decimal to NFloat) |
Explicitly converts a Decimal value 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(UInt128 to NFloat) |
Explicitly converts UInt128 to its nearest representable native-sized floating-point value. |
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.
public:
static explicit operator System::UInt64(System::Runtime::InteropServices::NFloat value);
[System.CLSCompliant(false)]
public static explicit operator ulong (System.Runtime.InteropServices.NFloat value);
[<System.CLSCompliant(false)>]
static member op_Explicit : System.Runtime.InteropServices.NFloat -> uint64
Public Shared Narrowing Operator CType (value As NFloat) As ULong
Parameters
- value
- NFloat
The value to convert.
Returns
value
converted to its nearest representable UInt64 value.
- Attributes
Applies to
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.
public:
static explicit operator System::UInt32(System::Runtime::InteropServices::NFloat value);
[System.CLSCompliant(false)]
public static explicit operator uint (System.Runtime.InteropServices.NFloat value);
[<System.CLSCompliant(false)>]
static member op_Explicit : System.Runtime.InteropServices.NFloat -> uint32
Public Shared Narrowing Operator CType (value As NFloat) As UInteger
Parameters
- value
- NFloat
The value to convert.
Returns
value
converted to its nearest representable UInt32 value.
- Attributes
Applies to
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.
public:
static explicit operator System::UInt16(System::Runtime::InteropServices::NFloat value);
[System.CLSCompliant(false)]
public static explicit operator ushort (System.Runtime.InteropServices.NFloat value);
[<System.CLSCompliant(false)>]
static member op_Explicit : System.Runtime.InteropServices.NFloat -> uint16
Public Shared Narrowing Operator CType (value As NFloat) As UShort
Parameters
- value
- NFloat
The value to convert.
Returns
value
converted to its nearest representable UInt16 value.
- Attributes
Applies to
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.
public:
static explicit operator UInt128(System::Runtime::InteropServices::NFloat value);
[System.CLSCompliant(false)]
public static explicit operator UInt128 (System.Runtime.InteropServices.NFloat value);
[<System.CLSCompliant(false)>]
static member op_Explicit : System.Runtime.InteropServices.NFloat -> UInt128
Public Shared Narrowing Operator CType (value As NFloat) As UInt128
Parameters
- value
- NFloat
The value to convert.
Returns
value
converted to its nearest representable UInt128 value.
- Attributes
Applies to
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.
public:
static explicit operator float(System::Runtime::InteropServices::NFloat value);
public static explicit operator float (System.Runtime.InteropServices.NFloat value);
static member op_Explicit : System.Runtime.InteropServices.NFloat -> single
Public Shared Narrowing Operator CType (value As NFloat) As Single
Parameters
- value
- NFloat
The value to convert.
Returns
value
converted to its nearest representable Single value.
Applies to
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.
public:
static explicit operator System::SByte(System::Runtime::InteropServices::NFloat value);
[System.CLSCompliant(false)]
public static explicit operator sbyte (System.Runtime.InteropServices.NFloat value);
[<System.CLSCompliant(false)>]
static member op_Explicit : System.Runtime.InteropServices.NFloat -> sbyte
Public Shared Narrowing Operator CType (value As NFloat) As SByte
Parameters
- value
- NFloat
The value to convert.
Returns
value
converted to its nearest representable SByte value.
- Attributes
Applies to
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.
public:
static explicit operator IntPtr(System::Runtime::InteropServices::NFloat value);
public static explicit operator IntPtr (System.Runtime.InteropServices.NFloat value);
static member op_Explicit : System.Runtime.InteropServices.NFloat -> nativeint
Public Shared Narrowing Operator CType (value As NFloat) As IntPtr
Parameters
- value
- NFloat
The value to convert.
Returns
nativeint
value
converted to its nearest representable IntPtr value.
Applies to
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.
public:
static explicit operator long(System::Runtime::InteropServices::NFloat value);
public static explicit operator long (System.Runtime.InteropServices.NFloat value);
static member op_Explicit : System.Runtime.InteropServices.NFloat -> int64
Public Shared Narrowing Operator CType (value As NFloat) As Long
Parameters
- value
- NFloat
The value to convert.
Returns
value
converted to its nearest representable Int64 value.
Applies to
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.
public:
static explicit operator int(System::Runtime::InteropServices::NFloat value);
public static explicit operator int (System.Runtime.InteropServices.NFloat value);
static member op_Explicit : System.Runtime.InteropServices.NFloat -> int
Public Shared Narrowing Operator CType (value As NFloat) As Integer
Parameters
- value
- NFloat
The value to convert.
Returns
value
converted to its nearest representable Int32 value.
Applies to
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.
public:
static explicit operator Half(System::Runtime::InteropServices::NFloat value);
public static explicit operator Half (System.Runtime.InteropServices.NFloat value);
static member op_Explicit : System.Runtime.InteropServices.NFloat -> Half
Public Shared Narrowing Operator CType (value As NFloat) As Half
Parameters
- value
- NFloat
The value to convert.
Returns
value
converted to its nearest representable Half value.
Applies to
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.
public:
static explicit operator Int128(System::Runtime::InteropServices::NFloat value);
public static explicit operator Int128 (System.Runtime.InteropServices.NFloat value);
static member op_Explicit : System.Runtime.InteropServices.NFloat -> Int128
Public Shared Narrowing Operator CType (value As NFloat) As Int128
Parameters
- value
- NFloat
The value to convert.
Returns
value
converted to its nearest representable Int128 value.
Applies to
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.
public:
static explicit operator UIntPtr(System::Runtime::InteropServices::NFloat value);
[System.CLSCompliant(false)]
public static explicit operator UIntPtr (System.Runtime.InteropServices.NFloat value);
[<System.CLSCompliant(false)>]
static member op_Explicit : System.Runtime.InteropServices.NFloat -> unativeint
Public Shared Narrowing Operator CType (value As NFloat) As UIntPtr
Parameters
- value
- NFloat
The value to convert.
Returns
unativeint
value
converted to its nearest representable UIntPtr value.
- Attributes
Applies to
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.
public:
static explicit operator System::Decimal(System::Runtime::InteropServices::NFloat value);
public static explicit operator decimal (System.Runtime.InteropServices.NFloat value);
static member op_Explicit : System.Runtime.InteropServices.NFloat -> decimal
Public Shared Narrowing Operator CType (value As NFloat) As Decimal
Parameters
- value
- NFloat
The value to convert.
Returns
value
converted to its nearest representable Decimal value.
Applies to
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.
public:
static explicit operator char(System::Runtime::InteropServices::NFloat value);
public static explicit operator char (System.Runtime.InteropServices.NFloat value);
static member op_Explicit : System.Runtime.InteropServices.NFloat -> char
Public Shared Narrowing Operator CType (value As NFloat) As Char
Parameters
- value
- NFloat
The value to convert.
Returns
value
converted to its nearest representable Char value.
Applies to
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.
public:
static explicit operator System::Byte(System::Runtime::InteropServices::NFloat value);
public static explicit operator byte (System.Runtime.InteropServices.NFloat value);
static member op_Explicit : System.Runtime.InteropServices.NFloat -> byte
Public Shared Narrowing Operator CType (value As NFloat) As Byte
Parameters
- value
- NFloat
The value to convert.
Returns
value
converted to its nearest representable Byte value.
Applies to
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.
public:
static explicit operator System::Runtime::InteropServices::NFloat(Int128 value);
public static explicit operator System.Runtime.InteropServices.NFloat (Int128 value);
static member op_Explicit : Int128 -> System.Runtime.InteropServices.NFloat
Public Shared Narrowing Operator CType (value As Int128) As NFloat
Parameters
- value
- Int128
The value to convert.
Returns
value
converted to its nearest representable native-sized floating-point value.
Applies to
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.
public:
static explicit operator System::Runtime::InteropServices::NFloat(double value);
public static explicit operator System.Runtime.InteropServices.NFloat (double value);
static member op_Explicit : double -> System.Runtime.InteropServices.NFloat
Public Shared Narrowing Operator CType (value As Double) As NFloat
Parameters
- value
- Double
The value to convert.
Returns
value
converted to its nearest representable native-sized floating-point value.
Applies to
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.
public:
static explicit operator System::Runtime::InteropServices::NFloat(System::Decimal value);
public static explicit operator System.Runtime.InteropServices.NFloat (decimal value);
static member op_Explicit : decimal -> System.Runtime.InteropServices.NFloat
Public Shared Narrowing Operator CType (value As Decimal) As NFloat
Parameters
- value
- Decimal
The value to convert.
Returns
value
converted to its nearest representable native-sized floating-point value.
Applies to
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.
public:
static explicit operator short(System::Runtime::InteropServices::NFloat value);
public static explicit operator short (System.Runtime.InteropServices.NFloat value);
static member op_Explicit : System.Runtime.InteropServices.NFloat -> int16
Public Shared Narrowing Operator CType (value As NFloat) As Short
Parameters
- value
- NFloat
The value to convert.
Returns
value
converted to its nearest representable Int16 value.
Applies to
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.
public:
static explicit operator System::Runtime::InteropServices::NFloat(UInt128 value);
[System.CLSCompliant(false)]
public static explicit operator System.Runtime.InteropServices.NFloat (UInt128 value);
[<System.CLSCompliant(false)>]
static member op_Explicit : UInt128 -> System.Runtime.InteropServices.NFloat
Public Shared Narrowing Operator CType (value As UInt128) As NFloat
Parameters
- value
- UInt128
The value to convert.
Returns
value
converted to its nearest representable native-sized floating-point value.
- Attributes