dcsimg
Results 1 to 3 of 3

Thread: really large variables

  1. #1
    Rich539006
    Guest

    really large variables

    OK I dont really have a clue where to start, but i need to create variables to store numbers as large as 2^1024, which is beyond all the default ones in vb i think. Any help/ways round this problem would be much appreciated

    Thanks and Happy New Year
    Richard Thomson

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    You can try to store them as strings. You'll need to write your own routines for things like adding and dividing. That's the only solution I can think of now. It won't be efficient, but it's fun to make
    Oetje
    oetje@home.nl
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

  3. #3
    Hyperactive Member Ed Lampman's Avatar
    Join Date
    Mar 2001
    Posts
    273
    I tested VB and it will handle a number equal to 2^1023.9 -
    I just typed in the Immediate window ?2^1023.9# and it printed 1.67730700348574E+308
    but you're right, it errors on 2^1024#

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width