Wilang Documentation1.0.0+4

toBest#

Converts to the most appropriate display unit.

Available in: math cells, REPL.

Syntax#

toBest(x)
toBest(x, unitList)
toBest(x, unitList, options)

Arguments and behavior#

Use dimensionally compatible units. Unit names and prefixes are case-sensitive. The example returns scalar (unit).

Example#

Edit the inputs, then use Run or Reset. Changes stay in this example.

Example
toBest(1000 m)

Expected result: 1000 m.

All functions · Math guides