At this version, I included some features to the main classes such as comparison methods for logical operations and static methods for the same purpose, I also included static constructor methods, with the purpose of being able to build based on a number in another numerical base and obtain the constructed object, this we achieved with the integration of a library named number-converter.io
.
- gt
- lt
- eq
- gte
- lte
- greaterThan
- lessThan
- isEqualTo
- greaterOrEqualThan
- lessOrEqualThan
- isNaNDecimal (for bigDecimal)
- isNaNInt (for bigInteger)
- isDecimal (only in bigDecimal)
- isSafeInteger
- fromBinary
- fromOctal
- fromHexadecimal
- fromOtherBase
- baseToDecimal
- decimalToBase
In addition, we changed some methods, now the Return
method and the Set
method can use cross-base conversion.
- Return
- SetBigInteger | SetBigDecimal
This version guarantees the safe use of conversion between numerical bases, constructions with large numbers in other bases and logical operations with large numbers.
At this point, we are aware of issues and solutions that have not been provided yet, such as the use of negative numbers safely in both main classes, although now all the added methods support negative numbers, the previous methods do not, we are also aware of an error with the division method in the bigDecimal class, This will be solved in a future patch, in the future version 1.1.2, see you then.