• Post Reply Bookmark Topic Watch Topic
  • New Topic

which datatype to use to store a number with 20 digits in it?  RSS feed

 
Anu satya
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
1. I have a requirement, I have to store a number with 20 digits in it to a variable . which data type do i need to use?
2. I need to also store a number with 11 digits in it to a variable. Which data type i need to use here?

 
Campbell Ritchie
Marshal
Posts: 56525
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is what you want
 
Winston Gutkowski
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anu satya wrote:Which data type i need to use here?

Did you try out your code? For starters it won't compile, for at least FOUR reasons - and one of them is a spelling mistake. One of the others would have given you your answer once you got the literal type correct.

Winston
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!