954,551 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Coding an infinity Number

Please help me to code an infinity number in VB

joeweks
Newbie Poster
1 post since Oct 2009
Reputation Points: 10
Solved Threads: 0
 

Huh? How do you record the infinite? You can't! That is why it is infinite. As soon as you come up with a measure of the infinite you find it is larger and thus unquantifiable.

Perhaps you should try to explain in detail what you are wanting to accomplish especially if english is a second language as I think you may have used the wrong word in your description.

Good Luck

vb5prgrmr
Posting Virtuoso
1,912 posts since Mar 2009
Reputation Points: 156
Solved Threads: 296
 
Please help me to code an infinity number in VB

Infinity number ?? in vb ??
I don't understand what are you trying to do ...I think there is no need of infinite Numbers in vb.You can declare variables like string , integer , double etc ..
Integers handle normal numbers [ for decimal numbers i am using double ].I think Integer can handle a lot of numbers , normal figures .If you want to print a bigggggggg number then use a string or text box i think it can include near 32000 or a little more ( one million need only 7 ), i mean a text file full of numbers , a million , a billion or more ...You don't use or read that number ...

I think .. if you use a big number and a big calculation then vb will show an error like overflow error , i don't remember ....

Vineeth K
Posting Whiz in Training
206 posts since Sep 2009
Reputation Points: 20
Solved Threads: 18
 

In C atleast you can use link list to represent very big number like 1000! ,etc .

ithelp
Nearly a Posting Maven
Banned
2,230 posts since May 2006
Reputation Points: 769
Solved Threads: 128
 

Im making a Calculator, and need to check if the number is not infinity (to prevent crashing if the number has escalated to infinity). I need
If Variable.Text <> Infinity

Urbndude
Newbie Poster
1 post since Nov 2009
Reputation Points: 10
Solved Threads: 0
 

What about restriction the user input to certain length ?
For output if the value is outside the range of decimal, simply show as out of range. That is exactly what the windows built in calculator does.

debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

I have multiplied a very big integer and the sum made automatically added the "E" and the decimals after that.

1 000 000 000.123456789 * 123456789.123456789.....

Answer returned = 1.23456789138698E+17

This allows 31 DECIMALS!

AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: