GLIDEPATH_MATH: {
    PRECISION: {
        CURRENCY_DECIMALS: 2;
        CURRENCY_MULTIPLIER: 100;
        PERCENTAGE_DECIMALS: 6;
        INTEREST_RATE_DECIMALS: 10;
    };
    EPSILON: {
        GENERAL: 1e-10;
        CURRENCY: 0.0001;
        PERCENTAGE: 1e-8;
    };
    CONVERSION: {
        MONTHS_PER_YEAR: 12;
        WEEKS_PER_YEAR: 52;
        DAYS_PER_YEAR: 365.25;
    };
} = ...

Mathematical constants and precision settings for glidepath calculations. These ensure numerical stability and consistent rounding behavior.

Type declaration

  • Readonly PRECISION: {
        CURRENCY_DECIMALS: 2;
        CURRENCY_MULTIPLIER: 100;
        PERCENTAGE_DECIMALS: 6;
        INTEREST_RATE_DECIMALS: 10;
    }

    Precision and rounding constants.

    • Readonly CURRENCY_DECIMALS: 2

      Number of decimal places for monetary amounts

    • Readonly CURRENCY_MULTIPLIER: 100

      Multiplier for currency rounding (100 for cents)

    • Readonly PERCENTAGE_DECIMALS: 6

      Number of decimal places for percentage calculations

    • Readonly INTEREST_RATE_DECIMALS: 10

      Number of decimal places for interest rate calculations

  • Readonly EPSILON: {
        GENERAL: 1e-10;
        CURRENCY: 0.0001;
        PERCENTAGE: 1e-8;
    }

    Epsilon values for floating-point comparisons.

    • Readonly GENERAL: 1e-10

      General floating-point comparison tolerance

    • Readonly CURRENCY: 0.0001

      Currency comparison tolerance (0.01 cents)

    • Readonly PERCENTAGE: 1e-8

      Percentage comparison tolerance

  • Readonly CONVERSION: {
        MONTHS_PER_YEAR: 12;
        WEEKS_PER_YEAR: 52;
        DAYS_PER_YEAR: 365.25;
    }

    Mathematical conversion constants.

    • Readonly MONTHS_PER_YEAR: 12

      Months per year for age calculations

    • Readonly WEEKS_PER_YEAR: 52

      Weeks per year for contribution calculations

    • Readonly DAYS_PER_YEAR: 365.25

      Days per year for precise calculations

Generated using TypeDoc