Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8548453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:29:55+00:00 2026-06-11T13:29:55+00:00

Well I can find many big integer libraries but they are for all programming

  • 0

Well I can find many big integer libraries but they are for all programming languages except VB.NET. Does anyone know a class/library for Visual Basic .NET which can handle very big numbers? (I’d like to handle 1024 or even more bits). The only calculation support I need it addition, substitution, multiplication, division and rounding.

It’s ment to be used with this code:

Dim Letterz() As Integer = {33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 0}
Function itoa(ByVal val As ULong)
    Dim toret As String = ""
    Dim TempVal As ULong = val
    For pos As ULong = 0 To 999999999999999999
        If TempVal > 0 Then
            Dim remainder As ULong = TempVal Mod Letterz.Length
            Dim ToInsert As Integer = Letterz(remainder)
            Dim ToInsStr As String = Chr(ToInsert)
            toret = ToInsStr & toret
            Dim DividedVal As Double = TempVal / Letterz.Length
            DividedVal = DividedVal - 0.5
            DividedVal = Math.Round(DividedVal, 0, MidpointRounding.ToEven)
            TempVal = DividedVal
        Else
            Exit For
        End If
    Next
    itoa = toret
End Function

Function atoi(ByVal val As String) As ULong
    Dim CURRNUM As ULong = 0
    Dim len As ULong = val.Length()
    If len > 0 Then
        For i As ULong = 0 To len - 1
            For x As ULong = 0 To Letterz.Length - 1
                Dim y As ULong = (len - i) - 1
                If val(y) = Chr(Letterz(x)) Then
                    Dim PWR As ULong = Math.Pow(Letterz.Length, i)
                    Dim MLTPLY As ULong = x * PWR
                    CURRNUM += MLTPLY
                End If
            Next
        Next
    End If
    atoi = CURRNUM
End Function
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
    TextBox2.Text = itoa(ULong.Parse(TextBox1.Text))
    TextBox3.Text = atoi(TextBox2.Text).ToString()
End Sub
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T13:29:57+00:00Added an answer on June 11, 2026 at 1:29 pm

    There is the BigInteger type in System.Numerics that was introduced in .NET 4. It can be used to represent “an arbitrarily large signed integer.”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well, I don't know if I'm completely wrong, but I really can't find a
Well I say what's said in the title again, I can't find a way
Well, I must be brain-damaged, because I can't find the java source for Sun's
I have a menu working fairly well but can't figure out how to make
Well im trying to write my own custom control extender but i can't get
I'm having a website with many big images file. The source (as well as
So i'm trying to make a program that can find how many pixels of
Someone somewhere has had to solve this problem. I can find many a great
Is AndroidAnnotations reliable? I've searched it but couldn't find many articles on it(reviews or
even though there are many examples out there, i can't find what I need?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.