Skip to content

DIVIDE

The DIVIDE function divides the score of a domain in a specified set by a value.
The DIVIDE function changes the value of Score in the hidden results table.

For example, if a set variable workingSet has these contents from the sample taxonomy in the introduction:

1.01    martial art
    1.01.1  aikido
1.07    golf

and the hidden results table is the one in the introduction, then this statement:

DIVIDE(workingSet, "1.01", 2);

will divide by 2 the score of domain 1.01 (60) that will become 30.

Since the only domains with a score are those listed in the hidden results table, only domains with a matching entry in that table are affected.

The syntax is:

DIVIDE(set, domain, number)

where:

  • set is a set variable.
  • domain is the domain name or ID.
  • number is the dividing factor. It can be an integer or a decimal number.