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

difference between decimal,float and decimal integer

 
Saumyaraj Zala
Ranch Hand
Posts: 65
AngularJS Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is difference between Decimal,Float and Decimal Integer?
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. What did the documentation say when you read it before posting here?

2. Where did you see the term "Decimal Integer" (with both words capitalized). Cite your sources, or it doesn't exist.
 
Campbell Ritchie
Sheriff
Pie
Posts: 50225
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where did you find a Decimal class? As JD said, please “cite your sources”.
 
Saumyaraj Zala
Ranch Hand
Posts: 65
AngularJS Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sry, its difference between decimal and integer
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saumyaraj Zala wrote:Sry, its difference between decimal and integer


That's not a Java question. It's a basic math question. I'm sure you can find definitions on the web quite easily.

 
fred rosenberger
lowercase baba
Bartender
Posts: 12196
35
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
decimal refers to a number system in base 10. That means you write it using the digits 0-9.

The Integers are the set of numbers that include the Natural numbers, their negatives, and 0.

You can write an Integer in decimal, in octal, in hexidecimal, in binary...but no matter how you write it, the value is the same.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic