Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Range of integer types

 
Rob Petterson
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do we need to know all the exact ranges of byte, short, int, long, float, double and char for the exam?
 
Jose Botella
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you can manage by...
knowing the exact range in decimal for byte, short, char and int.
long in exponential form: - 2to63 to 2to63 -1
for float and double only a general sense of the range:
float 3.4e+38 to 1.4e-45
double 1.8e+308 to 4.9e-324
 
Jamal Hasanov
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Rob, you also need to know the size of them,
byte - 8 bit
char - 16 bit
short - 16 bit
int - 32 bit
long - 64 bit
float - 32 bit
double - 64 bit
Jamal Hasanov
www.j-think.com
 
Rob Petterson
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks guys.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic