BigInteger and BigDecimal [equivalents] for VB.NET?

B

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!

:)
 
T

Teemu

Bogus Exception said:
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
 
T

Teemu

Bogus Exception said:
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
 
T

Teemu


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

Instead of that I installed this:
http://www.microsoft.com/downloads/...b3-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
 
T

Teemu


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

Instead of that I installed this:
http://www.microsoft.com/downloads/...b3-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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top