mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-25 19:21:11 +08:00
chore: rustfmt 全量格式化——CI fmt check 差异清零
This commit is contained in:
@@ -198,7 +198,11 @@ pub(crate) fn f16_bits_to_f64(h: u16) -> f64 {
|
||||
// 正规:(1 + mant/2¹⁰) × 2^(exp-15)。
|
||||
(1.0 + mant / 1024.0) * 2.0f64.powi(exp - 15)
|
||||
};
|
||||
if sign == 1.0 { -v } else { v }
|
||||
if sign == 1.0 {
|
||||
-v
|
||||
} else {
|
||||
v
|
||||
}
|
||||
}
|
||||
|
||||
/// `Math.f16round`:把 double 舍入到 binary16 精度再还原为 double。
|
||||
|
||||
Reference in New Issue
Block a user