Conversion

Hexadecimal fraction converter

Settings
Reset
Share
Save
Embed
Report a bug

Share calculator

Add our free calculator to your website

Please enter a valid URL. Only HTTPS URLs are supported.


Use as default values for the embed calculator what is currently in input fields of the calculator on the page.


Input border focus color, switchbox checked color, select item hover color etc.


Please agree to the Terms of Use.

Preview

Save calculator

Calculator Settings

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Share calculator

What is a hexadecimal fraction?

Hexadecimal is a base‑16 number system that uses sixteen distinct symbols:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F.
In this system, the letters A–F represent the decimal values 10–15. While most people are familiar with whole hexadecimal numbers (commonly used in computing and color coding), fractional hexadecimal numbers are less frequently discussed but equally important, particularly in computer arithmetic and floating‑point representations.

A hexadecimal fraction is any number containing a fractional part written in base 16. For example:

0.AC160.AC_{16}

is a hexadecimal fraction, representing the decimal value 1016+12162=0.67187510\frac{10}{16} + \frac{12}{16^2} = 0.671875_{10}.

How the converter works

This calculator instantly converts fractional numbers between the decimal, hexadecimal, and other numeral systems, without the need to click a “calculate” button. Users can input either a decimal fraction or a fractional hexadecimal number, and the converter automatically provides the equivalent value in the desired base.

The tool is useful for:

  • Developers working with computer memory addresses or color codes.
  • Students learning about number systems and conversions.
  • Scientists or engineers dealing with data in different bases.

The conversion process includes two main stages:

  1. Conversion of the integer part (if present).
  2. Conversion of the fractional part by successive multiplication or division.

Step-by-step example

Example 1: Decimal 10.375 to hexadecimal

  1. Integer part = 10 → A16A_{16}.
  2. Fractional part = 0.375.

Compute fractional part:

MultiplicationResultWhole partRemainder
0.375 × 166.060

Thus, the final result:

10.37510=A.61610.375_{10} = A.6_{16}

Example 2: Fractional hexadecimal 2.F to decimal

2.F16=2+1516=2.9375102.F_{16} = 2 + \frac{15}{16} = 2.9375_{10}

Example 3: Repeating fraction example

Convert 0.1100.1_{10} to hexadecimal.

MultiplicationResultWhole partRemainder
0.1 × 161.616
0.6 × 169.696
0.6 × 169.696

The pattern repeats, so:

0.1100.1999...160.1_{10} \approx 0.1999..._{16}

This demonstrates that not all decimal fractions have finite hexadecimal representations, just as 13\frac{1}{3} cannot be represented precisely in base 10.

Applications of hexadecimal fractions

  • Computer graphics and color encoding: Colors like RGBA sometimes use fractional hex representations to define transparency.
  • Digital hardware: Microcontrollers and processors may store floating values as hexadecimal fractions for compactness.
  • Data transmission: When encoding binary data into readable formats, fractional hex notation may appear.
  • Educational purposes: Excellent for demonstrating floating‑point rounding and precision issues across numerical systems.

Conversion to other bases

The converter can transform fractional numbers between any numeral systems—from binary (base 2) to octal (base 8), decimal (base 10), and hexadecimal (base 16), and even beyond.

For a fractional number 0.b1b2b3...k0.b_1 b_2 b_3 ..._{k} in base kk, the general conversion formula to decimal is:

(0.b1b2b3...)k=i=1nbiki(0.b_1 b_2 b_3 ... )_{k} = \sum_{i=1}^{n} \frac{b_i}{k^i}

Once expressed as a decimal, it can easily be converted into another base using the multiplication method described earlier.

Interesting historical fact

The widespread use of hexadecimal in computing emerged in the 1960s. Systems like the IBM 1620 originally preferred base‑10 arithmetic, but binary‑based architectures soon showed that base‑16 was more compatible with the underlying processor design. The hexadecimal fraction and floating‑point representation became instrumental in describing computer memory and hardware operations ever since.

Frequently Asked Questions

How to convert 7.25 from decimal to hexadecimal?

Separate integer and fractional parts:
Integer part: 710=7167_{10} = 7_{16}.
Fractional part: 0.25×16=40.25 \times 16 = 4.
Therefore, 7.2510=7.4167.25_{10} = 7.4_{16}.

How to convert 0.A3 from hexadecimal to decimal?

A=10,3=3A = 10, \, 3 = 3 10161+3162=0.625+0.01171875=0.6367187510\frac{10}{16^1} + \frac{3}{16^2} = 0.625 + 0.01171875 = 0.63671875_{10}

How many hexadecimal digits are needed to represent 0.5 in decimal?

To express 0.5 in base‑16:

0.5×16=80.5 \times 16 = 8

Thus, a single hexadecimal digit after the point is enough:

0.510=0.8160.5_{10} = 0.8_{16}

How to know if a decimal fraction will terminate in hexadecimal?

A decimal fraction terminates in hexadecimal if its denominator (when expressed in lowest terms) divides a power of 16, i.e., 2a×5b2^a \times 5^b where the highest power of 2 present divides 16n=24n16^n = 2^{4n}.
Example: 18\frac{1}{8} will terminate because 8=238 = 2^3 divides 24n2^{4n}.
However, 13\frac{1}{3} will not terminate since 3 does not divide a power of 2.

Report a bug

This field is required.