• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Floating-point numbers range

 
Otto Deckelman
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone explain what the range of a float actually means.
example: 1.4E-45 to 3.4E+38
 
Marilyn de Queiroz
Sheriff
Posts: 9061
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1.4E-45 means
1.4*10^-45 (E stands for "exponent")
(i.e. 0.000000000000000000000000000000000000000000014)

This is the smallest possible positive float number

3.4E+38 means
3.4*10^38
(i.e. 340,000,000,000,000,000,000,000,000,000,000,000,000)

This represents the largest possible postive float number.

Remember that there are also negative float numbers.
 
Otto Deckelman
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Marilyn, thanks alot...your explanation really helps
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic