Version: 2022.2

Mathf.HalfToFloat

切换到手册
public static float HalfToFloat (ushort val);

参数

val The half precision value to convert.

返回

float The decoded 32-bit float.

描述

Convert a half precision float to a 32-bit floating point value.

See Also: Mathf.FloatToHalf.