언어

Float.FloatToFloat16(Single) 메서드

정의

{ }

[Android.Runtime.Register("floatToFloat16", "(F)S", "", ApiSince=36)]
public static short FloatToFloat16(float f);
[<Android.Runtime.Register("floatToFloat16", "(F)S", "", ApiSince=36)>]
static member FloatToFloat16 : single -> int16

매개 변수

f
Single

float binary16으로 변환할 값

반품

인수에 가장 가까운 값으로 short인코딩된 부동 소수점 binary16 값} 변환은 java.math.RoundingMode#HALF_EVEN 가장 가까운 반올림 모드로 반올림됩니다.

        Special cases:
        &lt;ul&gt;
        &lt;li&gt; If the argument is zero, the result is a zero with the
        same sign as the argument.
        &lt;li&gt; If the argument is infinite, the result is an infinity
        with the same sign as the argument.
        &lt;li&gt; If the argument is a NaN, the result is a NaN.
        &lt;/ul&gt;

        The binary16 format is discussed in
        more detail in the <code data-dev-comment-type="c">#float16ToFloat</code> method.
특성

설명

{ }

20에 추가되었습니다.

에 대한 java.lang.Float.floatToFloat16(float)Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상