blob: 40ac3d323a8129663d4499d06cc9a21cd014193a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
namespace Mammoth.Couscous.java.math {
internal class BigInteger {
internal static readonly BigInteger _ONE = new BigInteger(1);
// TOOD: use proper BigInteger
private readonly long _value;
internal BigInteger(string value) {
_value = long.Parse(value);
}
internal BigInteger(long value) {
_value = value;
}
internal BigInteger subtract(BigInteger other) {
return new BigInteger(_value - other._value);
}
internal string toString() {
return _value.ToString();
}
}
}
|