Float.Float16ToFloat(Int16) Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
{
[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
Parameter
- floatBinary16
- Int16
der binäre16-Wert, in den konvertiert werden soll float
Gibt zurück
der float Wert, der dem numerischen Wert des Arguments am nächsten kommt, einem binär16-Gleitkommawert, der in einem short} codiert ist; Die Konvertierung ist genau. Alle binären16-Werte können genau dargestellt floatwerden.
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 {
- Attribute
Hinweise
{
Hinzugefügt in 20.
Java Dokumentation für java.lang.Float.float16ToFloat(short).
Teile dieser Seite sind Änderungen auf der Grundlage von Arbeiten, die von der Android Open Source Project erstellt und gemeinsam verwendet und gemäß den in der 2.5 Attribution License beschriebenen Begriffen verwendet werden.