Difference between revisions of "Fixed Point Numbers"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
m
Line 1: Line 1:
{{Need_Expanding}}
+
== The Binary Point ==
 +
Fixed Point numbers are a straightforward and simple approach to express Fractional numbers, utilizing a Fixed Number of bits. The expression "Fixed Point" alludes to the position of the Binary Point. The Binary Point is similar to the Decimal Point of a base-ten number, however since this is Binary as opposed to Decimal, an alternate term is utilized. In Binary, bits can be either 0 or 1 and there is no different image to assign where the Binary Point lies. Be that as it may, we envision, or accept, that the Binary Point lives at a Fixed area between assigned bits in the number. For example, in a 32-bit number, we can expect that the Binary Point exists specifically between bits 15 (15 in light of the fact that the primary piece is numbered 0, not 1) and 16, giving 16 bits for the Whole number part and 16 bits for the Fractional part. Note that the most significant bit in the whole number field is generally designated as the sign bit leaving 15 bits for the whole number's magnitude.
 +
 
 +
== Method ==
 +
Not all numbers can be represented exactly by a fixed-point number, and so the closest approximation is used.

Revision as of 19:49, 29 December 2016

The Binary Point

Fixed Point numbers are a straightforward and simple approach to express Fractional numbers, utilizing a Fixed Number of bits. The expression "Fixed Point" alludes to the position of the Binary Point. The Binary Point is similar to the Decimal Point of a base-ten number, however since this is Binary as opposed to Decimal, an alternate term is utilized. In Binary, bits can be either 0 or 1 and there is no different image to assign where the Binary Point lies. Be that as it may, we envision, or accept, that the Binary Point lives at a Fixed area between assigned bits in the number. For example, in a 32-bit number, we can expect that the Binary Point exists specifically between bits 15 (15 in light of the fact that the primary piece is numbered 0, not 1) and 16, giving 16 bits for the Whole number part and 16 bits for the Fractional part. Note that the most significant bit in the whole number field is generally designated as the sign bit leaving 15 bits for the whole number's magnitude.

Method

Not all numbers can be represented exactly by a fixed-point number, and so the closest approximation is used.