Function LCD

  • Calculates the least common divisor (LCD) of two numbers.

    Parameters

    • a: number

      The first number.

    • b: number

      The second number.

    Returns number

    The LCD of the two numbers.

    Static

    Example

    LCD(12, 18);    // Returns 36
    LCD(24, 36); // Returns 72

Generated using TypeDoc