Field is empty
'%1' is not a valid email address.
Field must not be empty.
It must be at least %1 characters long.
It must be less than %1 characters long.
It must be the same as the field '%1' value.
Invalid symbol entered. Allowed symbols:'%1'.
Number expected.
Positive number expected.
Integer expected.
Positive integer expected.
Values must be in the range [%1 .. %2].
Symbol %1 is already entered in allowed character set.
Field value must be less than %1.
First character must be a Latin letter.
Sun
Mon
Tue
Wed
Thu
Fri
Sat
January
February
March
April
May
June
July
August
September
October
November
December
century
B.C.
%1 century
Error occurred while importing data on line:%1. Invalid value: '%2'. Error: %3
"Could not determine a data field separator. You may use one of the following characters to separate data fields: tab, ';' or ','."
%2/%3/%1%4
%2/%3/%1%4 %6:%7
N
S
E
W
yes
no
Invalid file format. We support only the following formats: %1
Please leave your email or phone number.
minutes
minutes
minute
minutes
minutes
minutes
minutes
minutes
minutes
minutes
minutes
minutes
minutes
hour
hours
hours
hours
hours
hours
hours
hours
hours
hours
hours
days
day
days
days
days
days
days
days
days
days
days
days
month
months
months
months
months
months
months
months
months
months
months
year
years
years
years
years
years
years
years
years
years
years
ago
%1 minutes ago
%1 minutes ago
%1 minute ago
%1 minutes ago
%1 minutes ago
%1 minutes ago
%1 minutes ago
%1 minutes ago
%1 minutes ago
%1 minutes ago
%1 minutes ago
%1 minutes ago
%1 minutes ago
%1 hour ago
%1 hours ago
%1 hours ago
%1 hours ago
%1 hours ago
%1 hours ago
%1 hours ago
%1 hours ago
%1 hours ago
%1 hours ago
%1 hours ago
%1 days ago
%1 day ago
%1 days ago
%1 days ago
%1 days ago
%1 days ago
%1 days ago
%1 days ago
%1 days ago
%1 days ago
%1 days ago
%1 days ago
%1 month ago
%1 months ago
%1 months ago
%1 months ago
%1 months ago
%1 months ago
%1 months ago
%1 months ago
%1 months ago
%1 months ago
%1 months ago
%1 year ago
%1 years ago
%1 years ago
%1 years ago
%1 years ago
%1 years ago
%1 years ago
%1 years ago
%1 years ago
%1 years ago
%1 years ago
HTML code for site/blog
Appearance
Sample
Close
Sofia Vasilievna
ProfessionalUnits converters

Conversion of fractional numbers between numeral systems

This online calculator helps to convert fractional number in one numeral system to fractional number in other numeral system.
Timur2010-06-04 19:13:14
After I've made several calculators for numeral systems conversion (from the simplest one to more advanced: Conversion of decimal number to other notations, Conversion from decimal numeral system, Conversion between two positional numeral systems - users often asked me, what should we do about fractional numbers, how to convert them? So, I decided to make another calculator, which can also convert fractional numbers between different numeral systems.

As usual, I've placed some theory below the calculator
Conversion of fractional numbers between numeral systemsCreative Commons Attribution/Share-Alike License 3.0 (Unported)
 Target number:
 Conversion details:
 Source number (decimal):
 Target number (decimal):
 Conversion error (decimal):
 Maximum conversion error possible (decimal):


So, I used to think that conversion of fractional numbers is difficult question, but it turns to be quite easy to understand. All we need to remember is that we deal with positional numeral system.

Let me show it on example. Take a look at decimal number 6.125. You can write it like this:

6.125=6*10^0 + 1*10^{-1}+2*10^{-2}+5*10^{-3}=6*1+\frac{1}{10}+\frac{2}{100}+\frac{5}{1000}

Easy to follow, isn't it? But it is the same thing for any other positional numeral system. Let's take, for example, infamous binary system, and fractional binary number 110.001. You can write it like this:

110.001=1*2^2 + 1*2^1+0*2^0+0*2^{-1}+0*2^{-2}+1*2^{-3}=1*4+1*2+0*1+\frac{0}{2}+\frac{0}{4}+\frac{1}{8}=6+\frac{1}{8}=6.125

Yes, I've made it up. Binary 110.001 is decimal 6.125. Shouldn't that easy?

But, there is one caveat. Since we have fractions, and the denominators are different, we can't always keep the same precision with different numeral systems.

Again, let me show it on example. Take a look at decimal number 0.8

0.8=0+\frac{8}{10}.

Everything is nice... for decimal numeral system. But for binary numeral system we have a problems. Look at this

0+\frac{1}{2}+\frac{1}{4}+\frac{0}{8}+\frac{0}{16}+\frac{1}{32}+\frac{1}{64}+...=0 + 0.5 + 0.25+0.03125+0.015625+...=0.796875+...

We can go on, but even now we can see that decimal 0.8 is binary 0.11001100...(and many digits). I ain't even sure we can find the exact number of binary digits to write 0.8 precisely.

That's why conversion of fractional numbers often gives us conversion error. The error depends on number of digits after point which we decide to use. For example, let's convert decimal 0.8 to binary and use 6 digits after the point. We will get 0.110011. But it is not decimal 0.8, in fact, it is decimal 0.796875, the difference is 0.003125. And this is our error during conversion decimal 0.8 to binary with 6 digits after the point.

The value of rightmost digit is called resolution or precision, and defines the smallest possible nonzero number which can be written using this number of digits. For our example it is 2^{-6}=0.015625. And maximum possible conversion error in that case is one-half of it, or 0.0078125. Note that our conversion error for 0.8 is not that bad comparing to maximum possible error.

That's all.









Not suitable?

View all calculators
(240 calculators in total. )
Request a calculator
 

Comments

Spam filter
Send comment