Click to See Complete Forum and Search --> : Longer than Long
MathewF
Oct 30th, 2006, 05:28 AM
Hello.
What variable would you use if integer is too small, and long is too small. I was to hold very large numbers greater than 19 digits.
Thanks for any help.
SpS
Oct 30th, 2006, 07:47 AM
You can use BigInteger class.
eranga262154
Oct 30th, 2006, 09:36 PM
You can use BigInteger class.
Correct :thumb:
But it is better if you can explain littlebit more here. I think MathewF can confused with this.
You can find it with java.math
You can used BigInteger class for lots of constructors and methods, with different types of varible. Read this (http://java.sun.com/j2se/1.4.2/docs/api/java/math/BigInteger.html) page and you can find more.
CornedBee
Oct 31st, 2006, 06:51 AM
But it is better if you can explain littlebit more here. I think MathewF can confused with this.
Why? Typing "java BigInteger" into Google leads me immediately to a reference of the class. Which is all the useful content of your post anyway. The "lots of constructors and methods" is perfectly meaningless.
eranga262154
Oct 31st, 2006, 08:53 PM
Why? Typing "java BigInteger" into Google leads me immediately to a reference of the class. Which is all the useful content of your post anyway. The "lots of constructors and methods" is perfectly meaningless.
Correct :thumb:
Google can leads you anywhere you want quickly. But most of the people don't know how to find something quickly. They don't know difference between "java BigInteger" and "java+BigInteger".
So what I'm trying to say is, lot of people are here to get something they want in quick time. Most of them don't like spend much time to find what they want. Isn't it?
If so, I think if we send something here it should be complete one. Isn't it? Am I wrong?
CornedBee
Nov 1st, 2006, 04:27 AM
Well, I personally think people can do some work too. Otherwise, I'd have to answer all those "please write my code for me" threads.
Now, if you want to give very precise and detailed information, that's fine with me. It's your time, not mine. I was just slightly irritated by your suggestion that sunnypalsingh's answer was insufficient.
lunchboxtheman
Nov 1st, 2006, 09:33 AM
I was just slightly irritated by your suggestion that sunnypalsingh's answer was insufficient.
Please excuse eranga262154 for trying to be helpful. He was just expanding on what was said trying to give more information. People come here for help, and that's what he was giving. He didn't waste your time, or in any way shapre or form deserve what you said.
CornedBee
Nov 1st, 2006, 09:34 AM
Please excuse eranga262154 for trying to be helpful. He was just expanding on what was said trying to give more information. People come here for help, and that's what he was giving. He didn't waste your time, or in any way shapre or form deserve what you said.
Funny that you quote this part of my post and then accuse me of something completely different ...
ComputerJy
Nov 1st, 2006, 11:31 AM
Ok, don't you think it's enough with who is wasting who's time!
Please stop the out of topic posts guys http://img259.imageshack.us/img259/7072/dry4hz.gif
eranga262154
Nov 1st, 2006, 08:43 PM
Ok, don't you think it's enough with who is wasting who's time!
Please stop the out of topic posts guys http://img259.imageshack.us/img259/7072/dry4hz.gif
Correct :thumb:
Don't worry about what others doing. Just try to do what you want for you and for others.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.