Results 1 to 3 of 3

Thread: [RESOLVED] Is there any way to do math operation with numbers bigger than max long value?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2010
    Posts
    131

    Resolved [RESOLVED] Is there any way to do math operation with numbers bigger than max long value?

    I'm trying to divide a very large random number (bigger than 9223372036854775807 that is the maximum of Long in vb) by 2 for example, and if I msgbox the output it will be smth like x.xxxxxxxxxxxxxxxxE+xx (when I declare the number as a string and have option strict off).
    So any way to get the real value?

  2. #2
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: Is there any way to do math operation with numbers bigger than max long value?

    Yup. BigInteger
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Apr 2010
    Posts
    131

    Re: Is there any way to do math operation with numbers bigger than max long value?

    Quote Originally Posted by dunfiddlin View Post
    Nice, thanks so much. It was hard to implement it because I wasn't finding the system.numerics dll file to reference to my program first, but now that I found it everything is cool, awesome man.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width