Operator explicit operator
explicit operator half(float)
Explicitly converts a float value to a half value.
Declaration
public static explicit operator half(float v)
Parameters
| Type | Name | Description |
|---|---|---|
| float | v | The single precision float value to convert to half. |
Returns
| Type | Description |
|---|---|
| half | The converted half value. |
explicit operator half(double)
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. |