@hebcal/hdate
    Preparing search index...

    Function gematriyaStrToNum

    • Converts a string of Hebrew letters to a numerical value.

      Only considers the value of Hebrew letters א through ת. Ignores final Hebrew letters such as ך (kaf sofit) or ם (mem sofit) and vowels (nekudot).

      Parameters

      • str: string

      Returns number

      gematriyaStrToNum('תשע״ד');   // 774
      gematriyaStrToNum('ט״ו'); // 15
      gematriyaStrToNum('ג׳תשס״א'); // 3761 (thousands prefix)