Float.Float16ToFloat(Int16) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
{ }
[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
Parametri
- floatBinary16
- Int16
valore binary16 in cui eseguire la conversione float
Valori restituiti
il float valore più vicino al valore numerico dell'argomento, un valore binary16 a virgola mobile codificato in un short} La conversione è esatta. Tutti i valori binary16 possono essere rappresentati esattamente in float.
Special cases:
<ul>
<li> If the argument is zero, the result is a zero with the
same sign as the argument.
<li> If the argument is infinite, the result is an infinity
with the same sign as the argument.
<li> If the argument is a NaN, the result is a NaN.
</ul>
<h4>binary16Format>IEEE 754 binary16 format</h4>
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 {
- Attributi
Commenti
{ }
Aggiunta in 20.
per java.lang.Float.float16ToFloat(short).
Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.