Sign in to follow this  

Simple Calculator?

Recommended Posts

Hi, I'm trying to make a calculator in Java, but my question isn't just related to that. On the windows calculator it seems you can enter a number way past what it will let you with a variable with type int. I was looking in my java book and it said int's are from -2billion - +2billion. In c++ unsigned is used to take out negatives and adds a extra 2 billion, but I need negavtive numbers too. Obviously I dont know too much about primitive datatype, only int's. Can double's hold more than floats. Just checking what you guys think before I go home and read my book. thanks for any comments.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this