# Converting units: convert =>

### 11.1.4 Converting units: convert =>

The convert command (see Section 5.23.26) can convert a unit object into another compatible unit. For this:

- 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.

- Input:
  convert(1_h,_s)
  Output:

  3600.0 s

- Input:
  convert(3600_s,_h)
  Output:

  1.0 h