answersLogoWhite

0


Best Answer

Floating point numbers are stored in scientific notation using base 2 not base 10.

There are a limited number of bits so they are stored to a certain number of significant binary figures.

There are various number of bytes (bits) used to store the numbers - the bits being split between the mantissa (the number) and the exponent (the power of 10 (being in the base of the storage - in binary, 10 equals 2 in decimal) by which the mantissa is multiplied to get the binary/decimal point back to where it should be), examples:

  • Single precision (IEEE) uses 4 bytes: 8 bits for the exponent (encoding ±), 1 bit for the sign of the number and 23 bits for the number itself;
  • Double precision (IEEE) uses 8 bytes: 11 bits for the exponent, 1 bit for the sign, 52 bits for the number;
  • The Commodore PET used 5 bytes: 8 bits for the exponent, 1 bit for the sign and 31 bits for the number;
  • The Sinclair QL used 6 bytes: 12 bits for the exponent (stored in 2 bytes, 16 bits, 4 bits of which were unused), 1 bit for the sign and 31 bits for the number.

The numbers are stored normalised:

In decimal numbers the digit before the decimal point is non-zero, ie one of {1, 2, ..., 9}.

In binary numbers, the only non-zero digit is 1, so *every* floating point number in binary (except 0) has a 1 before the binary point; thus the initial 1 (before the binary point) is not stored (it is implicit).

The exponent is stored by adding an offset of 2^(bits of exponent - 1), eg with 8 bit exponents it is stored by adding 2^7 = 1000 0000

Zero is stored by having an exponent of zero (and mantissa of zero).

Example 10 (decimal):

10 (decimal) = 1010 in binary → 1.010 × 10^11 (all digits binary) which is stored in single precision as:

sign = 0

exponent = 1000 0000 + 0000 0011 = 1000 00011

mantissa = 010 0000 0000 0000 0000 0000 (the 1 before the binary point is explicit).

Example -0.75 (decimal):

-0.75 decimal = -0.11 in binary (0.75 = ½ + ¼) → 1.1 × 10^-1 (all digits binary) → single precision:

sign = 1

exponent = 1000 0000 + (-0000 0001) = 0111 1111

mantissa = 100 0000 0000 0000 0000 0000

Note 0.1 in decimal is a recurring binary fraction 0.1 (decimal) = 0.0001100110011... in binary which is one reason floating point numbers have rounding issues when dealing with decimal fractions.

User Avatar

Wiki User

6y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

6y ago

The numbers stored in a computer in floating-point notation are stored in scientific notation - but note that internally, they are stored in base-2, not in base-10.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How is scientific notation related to the floating point representation used by computers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the correct scientific notation representation for 0.000214?

The correct scientific notation representation for 0.000214 is: 2.14 x 10-4


What is a floating decimal on a calculator?

It is the use of scientific notation.


What is a float value?

A value of float or floating point type represents a real number coded in a form of scientific notation. Depending on the computer it may be a binary coded form of scientific notation or a binary coded decimal (BCD) form of scientific notation, there are a nearly infinite number of ways of coding floating point but most computers today have standardized on the IEEE floating point specifications (e.g. IEEE 754, IEEE 854, ISO/IEC/IEEE 60559).


What is the correct representation of 1230 in scientific notation?

1.230 X 10^3


Why do computers use the floating point system for number represantation?

Computers need a method to store decimals. More to the point, they need a method to manage very large and very small numbers - numbers that we would normally show in scientific notation.


Need a web to look up scientific notation?

You can use websites like Wolfram Alpha, Scientific Calculator, or OnlineConversion to look up scientific notation. Simply enter the number in scientific notation and these websites will provide you with the equivalent decimal representation or vice versa.


What is the goal of the scientific notation?

Representation of very large or very small numbers or quantities in a straightforward way.


Clearly explain the functions that the mantissa and exponent have in floating point number?

Think of the floating-point number as a number in scientific notation, for example, 5.3 x 106 (i.e., 5.3 millions). In this example, 5.3 is the mantissa, whereas 6 is the exponent. The situation is slightly more complicated, in that floating-point numbers used in computers are stored internally in binary. Some precision can be lost when converting between decimal and binary.Think of the floating-point number as a number in scientific notation, for example, 5.3 x 106 (i.e., 5.3 millions). In this example, 5.3 is the mantissa, whereas 6 is the exponent. The situation is slightly more complicated, in that floating-point numbers used in computers are stored internally in binary. Some precision can be lost when converting between decimal and binary.Think of the floating-point number as a number in scientific notation, for example, 5.3 x 106 (i.e., 5.3 millions). In this example, 5.3 is the mantissa, whereas 6 is the exponent. The situation is slightly more complicated, in that floating-point numbers used in computers are stored internally in binary. Some precision can be lost when converting between decimal and binary.Think of the floating-point number as a number in scientific notation, for example, 5.3 x 106 (i.e., 5.3 millions). In this example, 5.3 is the mantissa, whereas 6 is the exponent. The situation is slightly more complicated, in that floating-point numbers used in computers are stored internally in binary. Some precision can be lost when converting between decimal and binary.


Why scientific notation useful to scientists?

Scientific notation produces convenient numbers when working with very small or very large quantities.


How is Scientific notation used electrically in Airplane Wings?

Scientific notation (i.e floating point) is used to represent the wide range of numbers that occur in the analysis of the fluid dynamics equations needed to design wings.


What is the scientific notation of 102.4?

1.024 x 102On calculators and computers, this is usually represented as: 1.024E2


If the scientific notation stops at centillion why don't the numbers stop too?

Scientific notation allows for representing extremely large or small numbers using a simpler format. The system itself does not set a limit on the numbers that can be written in scientific notation. However, beyond a certain point, numbers become so large that they are not practical or meaningful in most scientific or everyday contexts, which is why the representation is typically stopped at centillion.