Adding two big numbers

Results 1 to 2 of 2

Thread: Adding two big numbers

  1. #1
    Join Date
    Dec 1969

    Default Adding two big numbers

    Number 1 is 8 digits long as is Number 2. When I try to do any operation on these two numbers (adding another number, adding them to each other), I get a VBScript runtime error. I&#039;ve looked at converting the numbers into various types (int, dbl, lng) with not much success. What do I need to do or shall I give up now?<BR><BR>The Cow

  2. #2
    Join Date
    Dec 1969

    Default RE: Adding two big numbers

    not sure why you get that, but this works for me...<BR><BR> intNumber1 = "12345678"<BR> intNumber2 = "87654321"<BR><BR> sumNumbers = Int(intNumber1) + Int(intNumber2)<BR><BR> Response.Write sumNumbers

Posting Permissions

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