SerikaNum
    Preparing search index...

    Interface OnoeNum

    Wrapper library for SerikaNum.

    interface OnoeNum {
        exponent: number;
        mantissa: number;
        abs(): OnoeNum;
        add(number: Number): OnoeNum;
        ceil(): OnoeNum;
        div(number: Number): OnoeNum;
        equals(number: Number): boolean;
        floor(): OnoeNum;
        lessEquals(number: Number): boolean;
        lessThan(number: Number): boolean;
        log(base: number): undefined | OnoeNum;
        log10(): undefined | OnoeNum;
        mod(number: Number): OnoeNum;
        moreEquals(number: Number): boolean;
        moreThan(number: Number): boolean;
        mul(number: Number): OnoeNum;
        pow(number: Number): OnoeNum;
        reciprocal(): OnoeNum;
        revert(): number;
        root(root: number): OnoeNum;
        round(): OnoeNum;
        sub(number: Number): OnoeNum;
        toScientific(): string;
        toSingle(): number;
        toString(mode?: "suffix" | "scientific"): string;
        toSuffix(): string;
        unary(): OnoeNum;
    }

    Hierarchy (View Summary)

    Index

    Properties

    exponent: number

    This number primitive represents how much to exponentiate the mantissa by.

    mantissa: number

    This number primitive represents the significant digits of the entire number.

    Methods

    • Rounds up the OnoeNum to the nearest integer. This operation is unsafe for numbers beyond 2^1024.

      Returns OnoeNum

    • Rounds down the OnoeNum to the nearest integer. This operation is unsafe for numbers beyond 2^1024.

      Returns OnoeNum

    • Get the logarithm of the OnoeNum object with the specified primitive number base.

      Parameters

      • base: number

        Base of the logarithm as a primitive number

      Returns undefined | OnoeNum

    • Reverts the OnoeNum back to a primitive number. For numbers beyond 2^1024, this will return math.huge.

      Returns number

    • Calculates the nth root of the OnoeNum object.

      Parameters

      • root: number

        Root to calculate (e.g., 2 for square root, 3 for cube root)

      Returns OnoeNum

    • Rounds the OnoeNum to the nearest integer. This operation is unsafe for numbers beyond 2^1024.

      Returns OnoeNum

    • Converts the SerikaNum tuple into a string in scientific notation format.

      Returns string

      Resulting string

    • Converts the SerikaNum tuple into a single primitive number that represents the magnitude of the number. This method should only be used for leaderboards and other things that do not require the specific number itself as the resulting single numbers are highly inaccurate.

      Returns number

      Resulting single number

    • Converts the OnoeNum object into a string with the specified mode. If suffix is used, this method is equivalent to OnoeNum.toSuffix. If scientific is used, this method is equivalent to OnoeNum.toScientific.

      Parameters

      • Optionalmode: "suffix" | "scientific"

        Mode of conversion to string

      Returns string

      Resulting string

    • Converts the OnoeNum into a string with a number and suffix. Use the Suffixer.changeSuffixes method to edit the suffixes. If a suffix for the specified OnoeNum tuple is not found, scientific notation is used.

      Returns string

      Resulting string