跳到主內容

IEEE 754浮點數分析器

開發者工具

Float32/64位元布局解析與精度說明

答案速覽

IEEE 754 Analyzer: Float32/64 bit layout and precision. IEEE 754 Analyzer uses standard developer formulas to compute accurate results instantly.

精度
Stored value (正規數)
0.10000000000000001
符號0指數01111111011尾數1001100110011001100110011001100110011001…
Hex: 3F B9 99 99 99 99 99 9A

位級解析

  1. 1Input 0.1 stored as double: sign=0, exponent field=1019 (bias 1023 → E=-4)
  2. 2Significand field = 10011001100110011001100110… (52 bits; hidden leading 1)
  3. 3Value = (−1)^0 × 1.mantissa × 2^-4

經典陷阱:0.1 + 0.2

0.1 + 0.2 = 0.30000000000000004
0.1 + 0.2 === 0.3 → false
0.1 這類小數在二進制下是無限循環的(如同十進制的 1/3)——無法精確儲存。金額請用整數分或 decimal 庫;浮點比較用 epsilon(Math.abs(a-b) < 1e-9),禁止 ===。JS 的 number 全是 float64;TypedArray 會暴露 float32 捨入。

這個工具對你有幫助嗎?

怎麼用

  1. Paste or type content: drop code/text into the IEEE 754 Analyzer or fill the parameters.
  2. Choose mode/options: switch format, rules or processing as needed.
  3. Live output: results appear instantly — nothing is submitted, data stays in your browser.
  4. One-click copy: copy the output straight into your development environment.

核心要點

  • IEEE 754 Analyzer is a free online developer tool — open and use, no sign-up.
  • All calculations run locally in your browser; your data never leaves the device.
  • Key capability: Float32/64 bit layout and precision.
  • Results come with formulas and reference tables so you can verify every number.

原理與公式

IEEE 754 Analyzer formula

IEEE 754 Analyzer uses standard developer formulas to compute accurate results instantly.

常見問題

How do I use the IEEE 754 Analyzer?
Open the page and fill in the input fields — results update automatically. Float32/64 bit layout and precision.
Are the results accurate?
Yes. Standard formulas and conversion factors are used and verified.
Is it free? Do I need to sign up?
Completely free. No registration, login or download required.
Does it work on mobile?
Yes. The responsive design works on phones, tablets and desktops.
Is my data saved?
No. Everything runs locally in your browser.

相關工具

相關指南

來源與更新

Based on RFC 4648, ECMA-262 and related specifications. Last updated: 2025-07

最近更新:

本頁公式與內容經YiJianSuan團隊覆核,僅供學習參考,實際業務請以官方口徑為準。

內容由YiJianSuan編輯團隊維護並定期覆核,更新與審核流程詳見編輯規範.

引用本頁: YiJianSuan. IEEE 754浮點數分析器[EB/OL]. https://www.yijiansuan.com/zh-TW/c/dev/ieee754

本工具提供的結果僅供參考,不構成任何專業建議,請以官方核算為準。