How to divide large numbers in Visual Basic

I am trying to do some basic math were I take a rather larger number, free bytes, say 12345678 and divide it by a larger number say 23456789 and put it into a variable then multiple it by 100 to get a percent. I tried using double to hold all the values but on the divide, 12345678/ 23456789 I am getting a 1.#QNAN in the Locals variable window for my Double variable.

Can someone show be in Visual Basic how to divide these two numbers and mulitple by 100?

Thanks
atomicgs12Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TommySzalapskiCommented:
There's no reason you couldn't put 23456789 in a double. Are you sure you aren't putting them into ints first or something? Can you post your code?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
atomicgs12Author Commented:
Thanks TommyS. After reading your post I did revisit my code and it was an error on my part. Trying to use UInt32 when I just needed Doubles. Further up in a Structure I was using. But again thanks for replying.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual C++.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.