IKVM.NET is an implementation of Java for Mono and the .NET Framework. It includes the following components:
- A Java Virtual Machine implemented in .NET
- A .NET implementation of the Java class libraries
- Tools that enable Java and .NET interoperability
Read more about what you can do with IKVM.NET.
OpenJDK.BigMathNET is a C# port of the Java library for advanced mathematical functions with arbitrary precision depended on IKVM.NET. It implements the following components:
- BigDecimalMath
- BigComplexMath
- BigRational
- BigComplex
and extends java.math functionality in IKVM.NET.
To use it in your own project download the library from release folder or use nuget package manager.
using java.math;
Usage example with calculating square root of 2
MathContext context = new MathContext(64);
BigDecimal a = new BigDecimal("2.0");
BigDecimal b = a.sqrt(context);
will produce the following output to the console:
1.414213562373095048801688724209698078569671875376948073176679738
MIT