Lecture Floating Point Numbers
Lecture Floating Point Numbers
• Observation: The last number was bigger than we could represent with a 32-bit signed
integer
• What is scientific notation?
• The alternative notation for the last two numbers is called scientific notation
• It has a single digit to the left of the decimal point
• What is normalized number?
• A number in scientific notation that has no leading 0s is called a normalized number, which is the
usual way to write it.
• For example, 1.0ten x10-9 is in normalized scientific notation, but 0.1ten x 10-8 and10.0 ten x10-10 are
Floating Point
• Can we show binary number in scientific notation?
• Yes. 1.0two x 2-1 and this is called binary point
• Why is the floating point called a floating point?
• Because it represents numbers in which the binary point is not fixed, just as it
is for integers
• What are the advantages of scientific notation in normalized form?
• It simplifies exchange of data that includes floating-point numbers
• It simplifies the floating-point arithmetic algorithms to know that numbers will
always be in this form
• For example, the exponents can be added or subtracted easily. This can streamline
calculations, reduce the chance of errors, and improve computational efficiency.
• It increases the accuracy of the numbers that can be stored in a word
Floating-Point Representation
• In general, floating-point numbers are of the form
(-1)S x F x 2E
where