Exponent bias (original) (raw)
In IEEE 754 floating-point numbers, the exponent is biased in the engineering sense of the word – the value stored is offset from the actual value by the exponent bias, also called a biased exponent.Biasing is done because exponents have to be signed values in order to be able to represent both tiny and huge values, but two's complement, the usual representation for signed values, would make comparison harder. To calculate the bias for an arbitrarily sized floating-point number apply the formula 2k−1 − 1 where k is the number of bits in the exponent.
Property | Value |
---|---|
dbo:abstract | In IEEE 754 floating-point numbers, the exponent is biased in the engineering sense of the word – the value stored is offset from the actual value by the exponent bias, also called a biased exponent.Biasing is done because exponents have to be signed values in order to be able to represent both tiny and huge values, but two's complement, the usual representation for signed values, would make comparison harder. To solve this problem the exponent is stored as an unsigned value which is suitable for comparison, and when being interpreted it is converted into an exponent within a signed range by subtracting the bias. By arranging the fields such that the sign bit takes the most significant bit position, the biased exponent takes the middle position, then the significand will be the least significant bits and the resulting value will be ordered properly. This is the case whether or not it is interpreted as a floating-point or integer value. The purpose of this is to enable high speed comparisons between floating-point numbers using fixed-point hardware. To calculate the bias for an arbitrarily sized floating-point number apply the formula 2k−1 − 1 where k is the number of bits in the exponent. When interpreting the floating-point number, the bias is subtracted to retrieve the actual exponent. * For a single-precision number, the exponent is stored in the range 1 .. 254 (0 and 255 have special meanings), and is interpreted by subtracting the bias for an 8-bit exponent (127) to get an exponent value in the range −126 .. +127. * For a double-precision number, the exponent is stored in the range 1 .. 2046 (0 and 2047 have special meanings), and is interpreted by subtracting the bias for an 11-bit exponent (1023) to get an exponent value in the range −1022 .. +1023. * For a quad-precision number, the exponent is stored in the range 1 .. 32766 (0 and 32767 have special meanings), and is interpreted by subtracting the bias for a 15-bit exponent (16383) to get an exponent value in the range −16382 .. +16383. (en) |
dbo:wikiPageID | 1069091 (xsd:integer) |
dbo:wikiPageLength | 4383 (xsd:nonNegativeInteger) |
dbo:wikiPageRevisionID | 1082862312 (xsd:integer) |
dbo:wikiPageWikiLink | dbr:Biasing dbr:Two's_complement dbr:Floating-point_arithmetic dbc:Computer_arithmetic dbr:Single_precision dbr:IBM_704 dbr:IEEE_754 dbr:Offset_binary dbr:Significand dbr:Double_precision dbr:Quad_precision dbr:Exponent |
dbp:cs1Dates | y (en) |
dbp:date | May 2019 (en) |
dbp:wikiPageUsesTemplate | dbt:Reflist dbt:Use_dmy_dates |
dcterms:subject | dbc:Computer_arithmetic |
rdfs:comment | In IEEE 754 floating-point numbers, the exponent is biased in the engineering sense of the word – the value stored is offset from the actual value by the exponent bias, also called a biased exponent.Biasing is done because exponents have to be signed values in order to be able to represent both tiny and huge values, but two's complement, the usual representation for signed values, would make comparison harder. To calculate the bias for an arbitrarily sized floating-point number apply the formula 2k−1 − 1 where k is the number of bits in the exponent. (en) |
rdfs:label | Exponent bias (en) |
owl:sameAs | freebase:Exponent bias wikidata:Exponent bias dbpedia-sr:Exponent bias https://global.dbpedia.org/id/4jtAT |
prov:wasDerivedFrom | wikipedia-en:Exponent_bias?oldid=1082862312&ns=0 |
foaf:isPrimaryTopicOf | wikipedia-en:Exponent_bias |
is dbo:wikiPageDisambiguates of | dbr:Bias_(disambiguation) |
is dbo:wikiPageRedirects of | dbr:Biased_exponent dbr:Characteristic_(biased_exponent) |
is dbo:wikiPageWikiLink of | dbr:Bfloat16_floating-point_format dbr:Double-precision_floating-point_format dbr:Single-precision_floating-point_format dbr:Bias_(disambiguation) dbr:Biased_exponent dbr:Subnormal_number dbr:Minifloat dbr:Extended_precision dbr:Fast_inverse_square_root dbr:Floating-point_arithmetic dbr:List_of_exponential_topics dbr:Quadruple-precision_floating-point_format dbr:Half-precision_floating-point_format dbr:IBM_1130 dbr:Methods_of_computing_square_roots dbr:Microsoft_Binary_Format dbr:IBM_hexadecimal_floating-point dbr:IEEE_754 dbr:IEEE_754-1985 dbr:Octuple-precision_floating-point_format dbr:Offset_binary dbr:Characteristic_(biased_exponent) dbr:Signed_number_representations |
is foaf:primaryTopic of | wikipedia-en:Exponent_bias |