Skip to content

More math, representation, input types and fixes

Choose a tag to compare

@EricRovell EricRovell released this 19 Aug 19:54
· 75 commits to main since this release
0f46184
  • [feature]: new type of input, degrees value object;
  • [feature]: new type of input, repeating decimal object;
  • [feature]: .repeating property for repeating decimals checks;
  • [fix]: invalid .proper property check for negative rationals;
  • [feature]: .toDecimalString(places) method for transforming rational numbers into decimal strings. Handles repeating decimals;
  • [feature]: .toFractionString() method for transforming rational numbers into fractional strings. Differs from .toString() by producing proper fractions by default;
  • [fix]: .integralPart invalid calculation for negative values;
  • [feature]: .gcd() method for calculating GCD of two rational numbers;
  • [feature]: .lcm() method for calculating LCM of two rational numbers;
  • [feature]: .divisible() method for divisibility checks;
  • [feature]: .valueOf() method for transformation into decimal and coercion;