Skip to main content

math_f16round

Function math_f16round 

Source
pub(crate) fn math_f16round(
    _: &mut Interp,
    _t: Value,
    a: &[Value],
) -> Result<Value, Value>
Expand description

Math.f16round(x)(ES2025)。半精度 16bit 浮動小数点数(IEEE 754 half-precision float) として表現可能な最も近い値へ丸める(Float16Array と同等の丸め)。