Operator Explicit
Explicit(Single to half)
Explicitly converts a float value to a half value.
Declaration
public static explicit operator half(float v)
Parameters
Type | Name | Description |
---|---|---|
Single | v | The single precision float value to convert to half. |
Returns
Type | Description |
---|---|
half | The converted half value. |
Explicit(Double to half)
Explicitly converts a double value to a half value.
Declaration
public static explicit operator half(double v)
Parameters
Type | Name | Description |
---|---|---|
Double | v | The double precision float value to convert to half. |
Returns
Type | Description |
---|---|
half | The converted half value. |