# difference between decimal,float and decimal integer

Campbell Ritchie

Marshal

Posts: 52632

119

posted 4 years ago

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

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.

posted 4 years ago

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.

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.

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors