Specifiers

A way to specify the form of a number

Soulver supports a number of different "specifiers" that let you choose how your answer is displayed.

Decimals

Strip the unit, rate or percentage from a number

$100 as number | 100
40/day as number | 40
20% as number | 0.2

Fractions

Display the answer as a fraction, if possible

2/10 as fraction | 1/5
50% as fraction | 1/2

Percentages

Convert to a percentage. Note that 0.5 is 50%, 2 is 200%.

0.35 as % | 35%
2/5 as percent | 40%

Decimal Places

Specify the amount of decimal places to round an answer to. This will override the line's default precision settings.

1/3 to 2 dp | 0.33
π to 5 digits | 3.14159

Timespans

A timespan is a quantity of time that includes multiple components (from the year down to the second)

5.5 minutes as timespan | 5 minutes 30 seconds
10 days as timespan | 1 week 3 days

Timestamps

Unix time is a system for describing a moment in time, often used by programmers. A timestamp is number of seconds that have passed since the "reference date" (January 1st, 1970).

Convert a date to a timestamp

April 1, 2019 to timestamp | 1554109200

Convert a timestamp back into a date

1559740303.48 to date | 5 June 2019 at 11:11 pm

To get a timestamp for the present moment, use new timestamp

new timestamp | 1559740303.48