@neutrium/math - v2.2.0
    Preparing search index...

    Function validateRationalTerm

    • Validate unknown input and return a detached, frozen rational term. All three components must be BigInts and the denominator must be positive. Reads each component once; extra fields are ignored and accessor errors propagate. Preserves the components exactly, without reducing factors, normalizing zero or expanding the decimal exponent. Use parseRationalTerm for decimal text instead.

      Parameters

      • value: unknown

      Returns RationalTerm

      RationalTypeError with INVALID_INPUT for invalid shapes or component types.

      RationalRangeError with ZERO_DENOMINATOR or INVALID_DENOMINATOR.