Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Download
Standard view
Full view
of .
Add note
Save to My Library
Sync to mobile
Look up keyword
Like this
1Activity
×
0 of .
Results for:
No results containing your search query
P. 1
Com-Laputational Numbers

Com-Laputational Numbers

Ratings: (0)|Views: 327|Likes:
Published by David Philips
How to depict numbers with fractional parts, with a binary mantissa and exponent.
How to depict numbers with fractional parts, with a binary mantissa and exponent.

More info:

Published by: David Philips on May 10, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, DOC, TXT or read online from Scribd
See More
See less

05/11/2012

pdf

text

original

 
Com-Laputational Numbers
If a fractional number is to be represented in binary format, with so many bitsfor the mantissa and a few left over for an exponent, how can one and seven-eighths, sixty one sixty-fourths, and five and three-eights, be expressed?We have an 8-bit mantissa where all the bits are significant. The mantissa, byitself, is whatever the denary is for the binary (
), multiplied by a defaultexponent of 2
-8
; to this we also multiply in the factor of the given unsignedexponent (always positive if unsigned, and having the value of 2
+x
, if 
x  
is thedenary for the unsigned exponent).The formula, given the denary mantissa,
, and the denary exponent,
x  
, isgiven as:
m
 x
××
22
8
. Our number is then:
81152152215
358
×=×=××
. Theformula can be re-expressed as:
m
 x
×
8
2
.That’s one method. Here is another:—The mantissa binary is, say, 00001111, which is, in floating point format
1
,0.00001111. The exponent is, say, 0101, which is 5 denary (or base 10 ordecimal). The exponent is an unsigned number, 5, or +5, so we move thebinary point (not decimal point!) 5 bits to the right, leaving us with a mantissaof 000001.111, where we can now discard the leading zeroes! The number isnow 1.111 binary. It’s more than 1! So, what is the fractional part?Here is a table:Power of 22
0
2
-1
2
-2
2
-3
2
-4
2
-5
2
-6
2
-7
2
-8
Fraction1
21418116132164112812561
Mantissa
1.11100000
The fractional part is 2
-1
+ 2
-2
+ 2
-3
, or
87818284814121
=++=++
. An exponent of zero does not affect the mantissa, so the mantissa binary of,say, 00111101, becomes in floating point format, 0.00111101. Let’s put that inour table:Power of 22
0
2
-1
2
-2
2
-3
2
-4
2
-5
2
-6
2
-7
2
-8
Fraction1
21418116132164112812561
Mantissa
0.00111101
1
Due to a binary point shifted left by the default exponent or ‘bias’ of -8

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->