Skip to content

Commit df2f506

Browse files
docs: Updates readme
1 parent ea0f3a9 commit df2f506

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,13 +249,19 @@ To uninstall, run:
249249
You 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
256256
convenience, 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

261267
To list the available units, use the `unit list` command:

0 commit comments

Comments
 (0)