Specifiers & Rounding

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%

Multipliers

Format as a multiplier.

20/5 as multipler | 4x

Rounding/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
5.5 rounded | 6
5.5 rounded down | 5
5.5 rounded up | 6

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

Laptimes

A laptime is a quantity of time in the format HH:MM:SS.MS

5.5 minutes as laptime | 00:05:30

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

ISO8601 Formatting

ISO8601 is an international standard for formatting dates & times, often used by databases.

Display a date in iso8601

April 1, 2019 3:30pm as iso8601 | 2019-04-01T15:30:00Z

Note: iso8601 formatted dates are currently not recognised in expressions. They can only be used for formatting answers, or via line references.