Constructor half
half(half)
Constructs a half value from a half value.
Declaration
public half(half x)
Parameters
Type | Name | Description |
---|---|---|
half | x | The input half value to copy. |
half(float)
Constructs a half value from a float value.
Declaration
public half(float v)
Parameters
Type | Name | Description |
---|---|---|
float | v | The single precision float value to convert to half. |
half(double)
Constructs a half value from a double value.
Declaration
public half(double v)
Parameters
Type | Name | Description |
---|---|---|
double | v | The double precision float value to convert to half. |