Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Floating-point arithmetic
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Range of floating-point numbers == A floating-point number consists of two [[Fixed-point arithmetic|fixed-point]] components, whose range depends exclusively on the number of bits or digits in their representation. Whereas components linearly depend on their range, the floating-point range linearly depends on the significand range and exponentially on the range of exponent component, which attaches outstandingly wider range to the number. On a typical computer system, a ''[[Double-precision floating-point format|double-precision]]'' (64-bit) binary floating-point number has a coefficient of 53 bits (including 1 implied bit), an exponent of 11 bits, and 1 sign bit. Since 2<sup>10</sup> = 1024, the complete range of the positive normal floating-point numbers in this format is from 2<sup>β1022</sup> β 2 Γ 10<sup>β308</sup> to approximately 2<sup>1024</sup> β 2 Γ 10<sup>308</sup>. The number of normal floating-point numbers in a system (''B'', ''P'', ''L'', ''U'') where * ''B'' is the base of the system, * ''P'' is the precision of the significand (in base ''B''), * ''L'' is the smallest exponent of the system, * ''U'' is the largest exponent of the system, is <math>2 \left(B - 1\right) \left(B^{P-1}\right) \left(U - L + 1\right)</math>. There is a smallest positive normal floating-point number, : Underflow level = UFL = <math>B^L</math>, which has a 1 as the leading digit and 0 for the remaining digits of the significand, and the smallest possible value for the exponent. There is a largest floating-point number, : Overflow level = OFL = <math>\left(1 - B^{-P}\right)\left(B^{U + 1}\right)</math>, which has ''B'' β 1 as the value for each digit of the significand and the largest possible value for the exponent. In addition, there are representable values strictly between βUFL and UFL. Namely, [[signed zero|positive and negative zeros]], as well as [[subnormal number]]s.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Floating-point arithmetic
(section)
Add topic