Langage

Float.Float16ToFloat(Int16) Méthode

Définition

{

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

Paramètres

floatBinary16
Int16

valeur binary16 à convertir en float

Retours

la float valeur la plus proche de la valeur numérique de l’argument, une valeur binaire à virgule flottante encodée dans un short} La conversion est exacte ; toutes les valeurs binaires16 peuvent être représentées exactement dans float.

        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;

        &lt;h4&gt;binary16Format&gt;IEEE 754 binary16 format&lt;/h4&gt;
        The IEEE 754 standard defines binary16 as a 16-bit format, along
        with the 32-bit binary32 format (corresponding to the <code data-dev-comment-type="c">float</code> type) and the 64-bit binary64 format (corresponding to
        the <code data-dev-comment-type="c">double</code> type). The binary16 format is similar to the
        other IEEE 754 formats, except smaller, having all the usual
        IEEE 754 values such as NaN, signed infinities, signed zeros,
        and subnormals. The parameters (JLS {
Attributs

Remarques

{

Ajouté en 20.

Documentation Java pour java.lang.Float.float16ToFloat(short).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à