Compartir a través de


Half Constructors

Definition

Overloads

Half(Double)

Constructs a newly allocated Half object that represents the argument converted to a half-precision float.

Half(Int16)

Constructs a newly allocated Half object that represents the half-precision float type argument.

Half(Single)

Constructs a newly allocated Half object that represents the argument converted to a half-precision float.

Half(String)

Constructs a newly allocated Half object that represents the half-precision float value represented by the string.

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.Half

Parameters

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.Half

Parameters

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.Half

Parameters

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.Half

Parameters

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.

Applies to