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(Single)
Constructs a half value from a float value.
Declaration
public half(float v)
Parameters
Type | Name | Description |
---|---|---|
Single | 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. |