# difference between decimal,float and decimal integer

Saumyaraj Zala
Ranch Hand
Posts: 65
What is difference between Decimal,Float and Decimal Integer?

Jeff Verdegan
Bartender
Posts: 6109
6
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
Posts: 49367
62
Where did you find a Decimal class? As JD said, please “cite your sources”.

Saumyaraj Zala
Ranch Hand
Posts: 65
Sry, its difference between decimal and integer

Jeff Verdegan
Bartender
Posts: 6109
6
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: 12143
30
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.