### 24.1.4 Converting units

The convert command (see Section 10.1.10) can convert a unit object into another compatible unit.

- convert takes two arguments:
  - unitobj, a unit object.
  - u, a unit compatible with unitobj.
- convert(unitobj,u) returns unitobj in terms of u.

Recall that the => operator is the infixed version of convert.

#### Examples

convert(1_h,_s)

3600.0 s |  |  |  |  |  |  |  |  |  |

convert(3600_s,_h)

1.0 h |  |  |  |  |  |  |  |  |  |