Home All Groups Group Topic Archive Search About

BigInteger and BigDecimal [equivalents] for VB.NET?

Author
16 May 2009 5:08 PM
Bogus Exception
Learned Experts,

I'm writing a client in VB.NET (VS 2008 Pro) and a server in Java. In
Java I have the benefit of BigInteger (arbitrary-precision integers)
and BigDecimal (arbitrary-precision signed decimal numbers). I'm
trying to find equivalent classes in VB.NET so I can exchange data and
perform calculations with equivalence across both languages.

I have seen references to the J# vjslib.dll, which looks promising,
but I can't find that library in my installation. I even downloaded
the Visual J# 2.0 Redistributable Package-Second Edition, but no
luck.

What I need is a solution that intellisense will handle properly, and
is dependable.

Surely there are those using this language that need this numeric
functionality for encryption and compression, if not for other
requirements...

TIA!

Show quoteHide quote
:)

Author
16 May 2009 7:26 PM
Teemu
"Bogus Exception" <bogusexcept***@gmail.com> kirjoitti viestissä
news:1e5bda83-d74d-4a78-bed0-fbb6397a18f7@t11g2000vbc.googlegroups.com...
> Learned Experts,
>
> I'm writing a client in VB.NET (VS 2008 Pro) and a server in Java. In
> Java I have the benefit of BigInteger (arbitrary-precision integers)
> and BigDecimal (arbitrary-precision signed decimal numbers). I'm
> trying to find equivalent classes in VB.NET so I can exchange data and
> perform calculations with equivalence across both languages.

It seems that there will be BigInteger class in .NET Framework 4.0 but
currently you have to use some external library or that J# solution.

-Teemu
Author
16 May 2009 7:29 PM
Teemu
Show quote Hide quote
"Teemu" <tsir***@hotmail.com> kirjoitti viestissä
news:ArEPl.1311$vi5.69@uutiset.elisa.fi...
>
> "Bogus Exception" <bogusexcept***@gmail.com> kirjoitti viestissä
> news:1e5bda83-d74d-4a78-bed0-fbb6397a18f7@t11g2000vbc.googlegroups.com...
>> Learned Experts,
>>
>> I'm writing a client in VB.NET (VS 2008 Pro) and a server in Java. In
>> Java I have the benefit of BigInteger (arbitrary-precision integers)
>> and BigDecimal (arbitrary-precision signed decimal numbers). I'm
>> trying to find equivalent classes in VB.NET so I can exchange data and
>> perform calculations with equivalence across both languages.
>
> It seems that there will be BigInteger class in .NET Framework 4.0 but
> currently you have to use some external library or that J# solution.

Apparently the file vjslib.dll should be inside this package:

http://download.microsoft.com/download/2/e/9/2e9bde04-3af1-4814-9f1e-733f732369a3/NETMatters0512.exe

-Teemu
Author
16 May 2009 7:45 PM
Teemu
"Teemu" <tsir***@hotmail.com> kirjoitti viestissä
news:quEPl.1313$vi5.912@uutiset.elisa.fi...

> Apparently the file vjslib.dll should be inside this package:
>
> http://download.microsoft.com/download/2/e/9/2e9bde04-3af1-4814-9f1e-733f732369a3/NETMatters0512.exe

Sorry about this misinformation, the file is not inside that archive.

Instead of that I installed this:
http://www.microsoft.com/downloads/details.aspx?FamilyID=f72c74b3-ed0e-4af8-ae63-2f0e42501be1&displaylang=en

Now I can create new VB Project, go to Project -> Add Reference -> vjslib
(.NET 2.0.50727) and I'm able to see BigInteger and BigDecimal classes.

*****

Imports java.math

Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
        Dim Example As New BigInteger(9)

    End Sub
End Class

*****

-Teemu
Author
17 May 2009 2:01 AM
Bogus Exception
Teemu,

That worked incredibly well!

Thank you so much.

Show quoteHide quote
:)