• Splits a number into the integer and fractional parts. Also returns the length of each Accounts for rounding and doesn't use string to be high performant. This has a max precision of 7.

    Parameters

    • value: number

    Returns {
        fp: number;
        fpLength: number;
        ip: number;
        ipLength: number;
    }

    • fp: number
    • fpLength: number
    • ip: number
    • ipLength: number