gematria

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2021 License: MIT Imports: 1 Imported by: 0

README

gematria

A Go utility to calculate the gematria of a string.

Documentation

Overview

Package gematria implements encoding of hebrew string into its gematria value.

The exact mapping between letters and numbers is described in the documentation for the Value() function.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Value

func Value(str string) (int, error)

Value returns the gematria value of str, and an error if result has overflowed. Value is calculated using the standard encoding, assigning the values 1–9, 10–90, 100–400 to the 22 Hebrew letters in order. Final letters have the value as the non-final. Non Hebrew characters are ignored.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL