Previous Up Next

10.1.4  Convert units: convert, =>

convert convert units: the first argument is an unit object and the second argument is the new unit (which must be compatible). (The => operator is the infixed version of convert.)
Input:

convert(1_h,_s)

Output:

3600_s

Input:

convert(3600_s,_h)

Output:

1_h

Previous Up Next