次の方法で共有


Half.Floor(Int16) Method

Definition

Returns the largest half-precision float value toward positive infinity less than or equal to the specified half-precision float value.

[Android.Runtime.Register("floor", "(S)S", "", ApiSince=26)]
public static short Floor (short h);
[<Android.Runtime.Register("floor", "(S)S", "", ApiSince=26)>]
static member Floor : int16 -> int16

Parameters

h
Int16

A half-precision float value

Returns

The largest half-precision float value toward positive infinity less than or equal to the specified half-precision float value

Attributes

Remarks

Returns the largest half-precision float value toward positive infinity less than or equal to the specified half-precision float value. Special values are handled in the following ways: <ul> <li>If the specified half-precision float is NaN, the result is NaN</li> <li>If the specified half-precision float is infinity (negative or positive), the result is infinity (with the same sign)</li> <li>If the specified half-precision float is zero (negative or positive), the result is zero (with the same sign)</li> </ul>

Java documentation for android.util.Half.floor(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