Converts numbers between the duosexagesimal and decimal systems.