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)Interactive examples could not load. You can still copy the expressions.
Expected result: 1000 m.