Operator implicit operator
implicit operator float(half)
Implicitly converts a half value to a float value.
Declaration
public static implicit operator float(half d)
Parameters
Type | Name | Description |
---|---|---|
half | d | The half value to convert to a single precision float. |
Returns
Type | Description |
---|---|
float | The converted single precision float value. |
implicit operator double(half)
Implicitly converts a half value to a double value.
Declaration
public static implicit operator double(half d)
Parameters
Type | Name | Description |
---|---|---|
half | d | The half value to convert to double precision float. |
Returns
Type | Description |
---|---|
double | The converted double precision float value. |