For the complete documentation index, see llms.txt. This page is also available as Markdown.

Miscellaneous

Stripping a unit or percentage from a number

To strip the unit, rate or percentage from a number, convert it to a number (or decimal)

$100 as number    | 100
40/day to decimal | 40
20% as dec        | 0.2

Proportions / Rule of three

Known as the rule of three, these phrases help you find the number required to maintain a proportion.

6 is to 60 as 8 is to what  | 80
5 is to 10 as what is to 80 | 40

These phrases also work with units:

5 km is to 500m as 5 cm is to what                | 5 mm
30 minutes is to 3 hours as what is to 60 seconds | 10 seconds

Comparing numbers

min() and max() in Soulver

larger of 100 and 200  | 200
greater of 100 and 200 | 200
                                                     
smaller of 5 and 10    | 5
lesser of 5 and 10     | 5

Midpoint

Random numbers

To generate a random integer in a specified range:

To generate a random floating point number, use the range 0 to 1

LCM & GCD

Lowest common multiple and greatest common divisor

Permutations & Combinations

Or alternatively use a slightly clearer syntax:

Clamp

Last updated