Half.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(Single to Half) | |
| Explicit(Half to Single) | |
| Explicit(Double to Half) | |
| Explicit(Half to Double) |
Explicit(Single to Half)
public:
static explicit operator Half(float value);
public static explicit operator Half (float value);
static member op_Explicit : single -> Half
Public Shared Narrowing Operator CType (value As Single) As Half
Parameters
Returns
The Half representation of the specified single-precision floating point value.
Applies to
Explicit(Half to Single)
public:
static explicit operator float(Half value);
public static explicit operator float (Half value);
static member op_Explicit : Half -> single
Public Shared Narrowing Operator CType (value As Half) As Single
Parameters
Returns
The Single representation of the specified half-precision floating point value.
Applies to
Explicit(Double to Half)
public:
static explicit operator Half(double value);
public static explicit operator Half (double value);
static member op_Explicit : double -> Half
Public Shared Narrowing Operator CType (value As Double) As Half
Parameters
Returns
The Half representation of the specified double-precision floating point value.
Applies to
Explicit(Half to Double)
public:
static explicit operator double(Half value);
public static explicit operator double (Half value);
static member op_Explicit : Half -> double
Public Shared Narrowing Operator CType (value As Half) As Double
Parameters
Returns
The Double representation of the specified half-precision floating point value.