Half Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Half(Double) | Constructs a newly allocated  | 
| Half(Int16) | Constructs a newly allocated  | 
| Half(Single) | Constructs a newly allocated  | 
| Half(String) | Constructs a newly allocated  | 
Half(Double)
Constructs a newly allocated Half object that
represents the argument converted to a half-precision float.
[Android.Runtime.Register(".ctor", "(D)V", "", ApiSince=26)]
public Half(double value);[<Android.Runtime.Register(".ctor", "(D)V", "", ApiSince=26)>]
new Android.Util.Half : double -> Android.Util.HalfParameters
- value
- Double
The value to be represented by the Half
- Attributes
Remarks
Constructs a newly allocated Half object that represents the argument converted to a half-precision float.
Java documentation for android.util.Half.Half(double).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Half(Int16)
Constructs a newly allocated Half object that represents the
half-precision float type argument.
[Android.Runtime.Register(".ctor", "(S)V", "", ApiSince=26)]
public Half(short value);[<Android.Runtime.Register(".ctor", "(S)V", "", ApiSince=26)>]
new Android.Util.Half : int16 -> Android.Util.HalfParameters
- value
- Int16
The value to be represented by the Half
- Attributes
Remarks
Constructs a newly allocated Half object that represents the half-precision float type argument.
Java documentation for android.util.Half.Half(short).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Half(Single)
Constructs a newly allocated Half object that represents the
argument converted to a half-precision float.
[Android.Runtime.Register(".ctor", "(F)V", "", ApiSince=26)]
public Half(float value);[<Android.Runtime.Register(".ctor", "(F)V", "", ApiSince=26)>]
new Android.Util.Half : single -> Android.Util.HalfParameters
- value
- Single
The value to be represented by the Half
- Attributes
Remarks
Constructs a newly allocated Half object that represents the argument converted to a half-precision float.
Java documentation for android.util.Half.Half(float).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Half(String)
Constructs a newly allocated Half object that represents the
half-precision float value represented by the string.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=26)]
public Half(string value);[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=26)>]
new Android.Util.Half : string -> Android.Util.HalfParameters
- value
- String
A string to be converted to a Half
- Attributes
Remarks
Constructs a newly allocated Half object that represents the half-precision float value represented by the string. The string is converted to a half-precision float value as if by the #valueOf(String) method.
Calling this constructor is equivalent to calling:
new Half(Float.parseFloat(value))
Java documentation for android.util.Half.Half(java.lang.String).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.