Chuyển đến nội dung chính

Bộ phân tích IEEE 754

Công cụ cho Nhà phát triển

Bố cục bit Float32/64 và độ chính xác

Xem nhanh kết quả

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

Độ chính xác
Stored value (Số chuẩn chính quy)
0.10000000000000001
Ký hiệu0Chỉ số01111111011Số đuôi1001100110011001100110011001100110011001…
Hex: 3F B9 99 99 99 99 99 9A

Phân tích cấp độ bit

  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

Bẫy cổ điển: 0.1 + 0.2

0.1 + 0.2 = 0.30000000000000004
0.1 + 0.2 === 0.3 → false
Số thập phân như 0.1 là vòng lặp vô hạn trong hệ nhị phân (giống như 1/3 trong hệ thập phân) — không thể lưu trữ chính xác. Vui lòng sử dụng đơn vị phân nguyên hoặc thư viện decimal cho số tiền; so sánh số dấu phẩy động dùng epsilon (Math.abs(a-b) < 1e-9), cấm dùng ===. Số của JS đều là float64; TypedArray sẽ lộ ra làm tròn float32.

Công cụ này có hữu ích cho bạn không?

Hướng dẫn sử dụng

  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.

Điểm chính

  • 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.

Công thức và nguyên lý hoạt động

IEEE 754 Analyzer formula

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

Câu hỏi thường gặp

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.

Công cụ liên quan

Hướng dẫn liên quan

Nguồn và cập nhật

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

Cập nhật gần nhất:

Công thức và nội dung trên trang này đã được đội ngũ YiJianSuan kiểm tra lại, chỉ dùng để tham khảo học tập, các nghiệp vụ thực tế vui lòng tuân theo thông báo chính thức.

Nội dung được đội ngũ biên tập YiJianSuan duy trì và kiểm tra lại định kỳ, quy trình cập nhật và kiểm duyệt xem tạiQuy định biên tập.

Trích dẫn trang này: YiJianSuan. Bộ phân tích IEEE 754[EB/OL]. https://www.yijiansuan.com/vi/c/dev/ieee754

Kết quả do công cụ này cung cấp chỉ mang tính tham khảo, không cấu thành bất kỳ lời khuyên chuyên nghiệp nào, vui lòng dựa trên kết quả tính toán chính thức.