11.1.4 Converting units: convert =>
The convert command (see Section 6.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:
- Input:
convert(3600_s,_h)
Output: