Elementium Sign in
Contents

Values · Value

Common factors

The biggest number that divides two numbers and the smallest that both divide.

Free plan math.gcd_lcm

In a flow

“Works out common factors whenever a step wired to it needs the answer.”

12 and 18 → 6 and 36

What it does

The biggest number that divides two numbers and the smallest that both divide. It's a value node: no white pins, it works out its answer when a step wired to it needs it. It gives 2 values later steps can use. Find it under Values in the palette.

When to use it

Use it when a step needs a value worked out first: the biggest number that divides two numbers and the smallest that both divide.

When not to

For a value that never changes, type it into the setting instead of wiring a node.

Typical wiring

Sockets: settings you can wire

First Number

A whole number.

What goes there: Type it in the side panel, or wire in a number. e.g. 42

If it's empty: Optional. Left empty and unwired, it uses 12.

Connects fromA member's variablesAccept applicationActive membersAddAdd a forum tagAdd a labelAdd a row to a Google SheetAdd a staff noteand 500 more

Second Number

A whole number.

What goes there: Type it in the side panel, or wire in a number. e.g. 42

If it's empty: Optional. Left empty and unwired, it uses 18.

Connects fromA member's variablesAccept applicationActive membersAddAdd a forum tagAdd a labelAdd a row to a Google SheetAdd a staff noteand 500 more

Values it gives

Biggest divisor Number

GCD. e.g. 6

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 718 more

Smallest multiple Number

LCM. e.g. 36

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 718 more

Often next

Related in Values

Wires and sockets · Data values · Plans