Numerological methods for single-digit summation, calculation of a string's value, and more.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
numerological.js

README.md

Numerological Math

This is an object for numerological calculations.

Methods

Use the list below to jump to the method you want to know more about.

numerological.value(str, map)

value() takes a string and returns a single digit between 1 and 9.

Example

numerological.value('Seth'); // 7

Passing true as the second parameter will return a string map which represents the calculation.

numerological.value('Seth', true);
// 's = 1 --> 1 + (e = 5) = 6 --> 6 + (t = 2) = 8 --> 8 + (h = 8) = 16 --> 1 + 6 = 7'

Note : Only basic latin characters are calculated by this method. ( A-Z )

numerological.summation(n, map)

summation() takes a whole number and returns a single digit.

Example

numerological.summation(2015); // 8

Passing true as the second parameter will return a string map which represents the calculation.

numerological.summation(2015, true);
// '2 + 0 = 2 --> 2 + 1 = 3 --> 3 + 5 = 8'

Note : Each number is added together until only a single digit remains.

numerological.gender(n)

gender() takes a whole number and returns the gender of the number in a string of either 'masculine' or 'feminine'.

Example

numerological.gender(7); // 'masculine'

Note : Odd numbers are considered Masculine and Even numbers are considered Feminine.