Skip to content

Instantly share code, notes, and snippets.

@JossDev-Morales
Last active September 13, 2023 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JossDev-Morales/3d2f932c099e5015cca3f51e3a398f30 to your computer and use it in GitHub Desktop.
Save JossDev-Morales/3d2f932c099e5015cca3f51e3a398f30 to your computer and use it in GitHub Desktop.

Releases Notes -v1.1.0

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.

Added Methods

  • gt
  • lt
  • eq
  • gte
  • lte

Added Static Methods

  • greaterThan
  • lessThan
  • isEqualTo
  • greaterOrEqualThan
  • lessOrEqualThan
  • isNaNDecimal (for bigDecimal)
  • isNaNInt (for bigInteger)
  • isDecimal (only in bigDecimal)
  • isSafeInteger
  • fromBinary
  • fromOctal
  • fromHexadecimal
  • fromOtherBase
  • baseToDecimal
  • decimalToBase

Methods that changed

In addition, we changed some methods, now the Return method and the Set method can use cross-base conversion.

  • Return
  • SetBigInteger | SetBigDecimal

What we gurantees

This version guarantees the safe use of conversion between numerical bases, constructions with large numbers in other bases and logical operations with large numbers.

Issues

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment