File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -249,13 +249,19 @@ To uninstall, run:
249249You can then perform unit conversions using the ` unit convert ` command:
250250
251251``` bash
252- unit convert 5_m /s mi/hr # Returns 11.184681460272012 mi/hr
252+ unit convert 5m /s mi/hr # Returns 11.184681460272012 mi/hr
253253```
254254
255- This command uses the unit and measurement [ serialization format] ( #serialization ) . Note that for
255+ This command uses the unit and expression [ serialization format] ( #serialization ) . Note that for
256256convenience, you may use an underscore ` _ ` to represent the normally serialized space. Also,
257257` * ` characters may need to be escaped.
258258
259+ You can also evaulate math in the first argument. For example:
260+
261+ ``` bash
262+ unit convert " 60mi/hr * 30min" " mi" # Returns 30.0 mi
263+ ```
264+
259265### List
260266
261267To list the available units, use the ` unit list ` command:
You can’t perform that action at this time.
0 commit comments