Close Menu
JustwebworldJustwebworld
  • People
  • Sports
  • Culture
  • Lifestyle
  • Food
  • Travel
  • Health
  • Tech
  • Business
  • Money
  • Digital
  • Gaming
  • Auto
  • Fashion
  • Home
  • Mind
  • Learn
Facebook X (Twitter) Instagram Pinterest YouTube LinkedIn WhatsApp Telegram
Friday, August 21
  • About
  • Contact
  • Advertise
  • Disclaimer
  • Terms & Conditions
  • Privacy Policy
  • Editorial Policy
JustwebworldJustwebworld
  • People
  • Sports
  • Culture
  • Lifestyle
  • Food
  • Travel
  • Health
  • Tech
  • Business
  • Money
  • Digital
  • Gaming
  • Auto
  • Fashion
  • Home
  • Mind
  • Learn
JustwebworldJustwebworld
Home » Tools » IEEE 754 Floating Point Converter

IEEE 754 Floating Point Converter

Michael Austin
Facebook Twitter LinkedIn Telegram Pinterest Reddit WhatsApp
Follow Us
WhatsApp Telegram

See exactly how a decimal number is stored as an IEEE 754 float or double – sign, exponent and mantissa bits – and why 0.1 + 0.2 does not equal 0.3.

The bits behind every float

IEEE 754 packs a number into sign, biased exponent and mantissa fields. This converter shows the exact packing for your input — every bit, the hex bytes, the field values decoded, and the precise decimal value actually stored, which for most decimal inputs is NOT the number you typed.

That last point is the famous one: 0.1 has no finite binary expansion, so the nearest double is 0.1000000000000000055511151231257827021181583404541015625. Seeing the true stored value dissolves the 0.1+0.2 mystery permanently.

Worked example

Value: −0.15625, single precision

Sign      1
Exponent  01111100   (124; actual 124−127 = −3)
Mantissa  01000000000000000000000

−0.15625 = −1.25 × 2⁻³
All bits: 10111110 00100000 00000000 00000000
Hex:      BE 20 00 00
FieldSingle (32-bit)Double (64-bit)
Sign1 bit1 bit
Exponent8 bits (bias 127)11 bits (bias 1023)
Mantissa23 bits52 bits
Decimal digits (approx.)~7~16

Specials and subnormals

All-ones exponent encodes ±Infinity (mantissa zero) and NaN (mantissa non-zero). All-zeros exponent encodes zero and the subnormal range, where precision fades gracefully toward zero. The classifier line names the regime for any input — try 1e-310 in double to visit subnormal territory.

Single versus double

The same value rounds differently at 23 versus 52 mantissa bits; comparing both encodings side by side is the concrete way to understand “float precision”. Roughly 7 decimal digits survive a float, 16 a double — the table above anchors the intuition.

Privacy

Encoding uses your browser’s own IEEE hardware via typed arrays, entirely on-device.

How to use the IEEE 754 Floating Point Converter

  1. Enter a decimal number – plain, scientific (1.5e-3), or the specials Infinity and NaN.
  2. Choose single (32-bit float) or double (64-bit) precision.
  3. Click "Encode as float".
  4. You get the sign, exponent and mantissa fields, all bits, the hex bytes, and the EXACT value actually stored.

Frequently asked questions

How is a number laid out in IEEE 754?

Three fields: 1 sign bit, then a biased exponent (8 bits single / 11 double), then the mantissa fraction (23 / 52 bits) with an implicit leading 1 for normal numbers. −0.15625 encodes as 1 | 01111100 | 01000000… = 0xBE200000 in single.

What is the exponent bias for?

It lets exponents be stored as unsigned: stored = actual + 127 (single) or +1023 (double). An exponent field of 01111100 means 124 − 127 = 2⁻³ – the steps decode this for your number.

Why does 0.1 come out "wrong"?

Because 0.1 has no finite binary expansion, the nearest double is 0.1000000000000000055511151231257827021181583404541015625 – bytes 3F B9 99 99 99 99 99 9A. The tool prints the exact stored value, which is the honest explanation of 0.1+0.2≠0.3.

What are subnormal numbers?

Values with the all-zero exponent field: the implicit leading 1 switches off and precision degrades gradually toward zero instead of cliff-dropping. The classifier line names them when your input lands there (try 1e-310 in double).

How do Infinity and NaN encode?

All-ones exponent: mantissa zero means ±Infinity; any non-zero mantissa is NaN. That reserved pattern is why the maximum finite exponent is one step short of the field's ceiling.

Why do float and double disagree about the same input?

Different mantissa widths round at different points: 0.1 as a float stores a different (coarser) neighbour than as a double. Comparing the two encodings side by side is the fastest way to see precision loss concretely.

Is my number processed locally?

Yes – the encoding uses your browser's own IEEE hardware via typed arrays, entirely on-device.

Related signed-number tools

  • Previous step: Fixed-Point Binary Converter — Convert between decimal values and fixed-point Qm.
  • Decimal Fraction to Binary Converter — Convert a decimal fraction to binary by repeated multiplication by two.
  • Endianness Converter — Swap a value between big-endian and little-endian byte order.

cards
Powered by paypal
Follow on WhatsApp Follow on Telegram
Share. Facebook Twitter Pinterest LinkedIn Tumblr Telegram WhatsApp Copy Link
Previous ArticleFixed-Point Binary Converter
Next Article Endianness Converter
Michael Austin
  • Website
  • Facebook
  • X (Twitter)
  • Pinterest
  • Instagram
  • LinkedIn

Michael Austin is the current owner of Justwebworld and manages the platform’s editorial direction, content strategy, and digital publishing operations. With a strong interest in online media and modern publishing, he focuses on creating informative, engaging, and easy-to-understand content across multiple categories.Under his leadership, Justwebworld continues to grow as a trusted multi-niche digital publication covering technology, business, lifestyle, automotive, sports, travel, and trending internet topics for readers worldwide.

Related Posts

How Older Adults Can Prepare Their Families for the Future

What Makes a Business Website Effective in 2026

The Rise of Mixed-Use Waterfront Communities

4 Zesty Board Games That Start With Z

3 Notable Board Games That Start With X

6 Wonderful Board Games That Start With W

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 41.9K other subscribers
Categories
Latest Posts

How Older Adults Can Prepare Their Families for the Future

What Makes a Business Website Effective in 2026

The Rise of Mixed-Use Waterfront Communities

4 Zesty Board Games That Start With Z

3 Notable Board Games That Start With X

6 Wonderful Board Games That Start With W

3 Varied Board Games That Start With V

3 Unusual Board Games That Start With U

8 Top Board Games That Start With T

10 Superb Board Games That Start With S

The content on this website is provided solely for educational and informational purposes. We do not promote, endorse, or deal in any products, services, or activities mentioned. While we strive to share accurate and up-to-date information, we make no warranties regarding completeness, reliability, or accuracy. Any action you take based on the information found here is strictly at your own risk, and we will not be liable for any losses or damages in connection with the use of our website.

DMCA.com Protection Status
Justwebworld

Explore knowledge, feed curiosity — trusted by readers since 2012.

Explore Topics
TechBusinessDigitalMoneyLearnPeopleLifestyleCultureHealthHomeTravelGamingFashionAutoFoodMindLawSportsShoppingAI
Popular Tools
Age CalculatorWord CounterCase ConverterLove CalculatorReading TimePeriod CalculatorNumber to WordsAngel NumberHarry Potter NameDemon NameKingdom NameAll Tools →
Popular Games
Bubble BlastSudokuTruth or Dare WheelYes / No WheelAll Games →
Facebook X (Twitter) Instagram Pinterest YouTube Tumblr LinkedIn WhatsApp Telegram Threads RSS
  • About
  • Contact
  • Advertise With Us
  • Disclaimer
  • Privacy Policy
  • Terms & Conditions
  • Editorial Policy
  • Write for Us
Copyright © 2012-2026. Justwebworld - All Rights Reserved. | Sitemap

Type above and press Enter to search. Press Esc to cancel.