Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes difference between decimal,float and decimal integer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "difference between decimal,float and decimal integer" Watch "difference between decimal,float and decimal integer" New topic
Author

difference between decimal,float and decimal integer

Saumyaraj Zala
Ranch Hand

Joined: Aug 06, 2012
Posts: 56

What is difference between Decimal,Float and Decimal Integer?


Why do we fall? So that we can learn to pick ourselves up.
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
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

Joined: Oct 13, 2005
Posts: 37907
    
  22
Where did you find a Decimal class? As JD said, please “cite your sources”.
Saumyaraj Zala
Ranch Hand

Joined: Aug 06, 2012
Posts: 56

Sry, its difference between decimal and integer
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
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

Joined: Oct 02, 2003
Posts: 11152
    
  16

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.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference between decimal,float and decimal integer
 
Similar Threads
Very Basic Question
Double / Float Doubt.
float variable
Integer...
Float to Int(VERY URGENT)