Campbell Ritchie

Marshal

Posts: 55717

163

posted 5 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 5 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