Float.Float16ToFloat(Int16) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
{
[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
參數
- floatBinary16
- Int16
將 Binary16 值轉換為 float
傳回
float最接近參數數值的值,一個以 short} 編碼的浮點二進位 16 值。轉換是精確的;所有 binary16 值都可以精確表示於 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 {
- 屬性
備註
{
20 年加進。
Java 文件 java.lang.Float.float16ToFloat(short)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。