The quick and dirty implementation
These forms are a rough sketch and allow to calculate exchange rates between Pound Sterling, Ottoman Lira, and Metric currencies and to convert any of the three currency types into any other using a supplied rate. The Pound Sterling is computed as £1 = 20s. = d. and the Ottoman Lira as £T1 = Ps 100 = Para. When Ottoman is chosen as the output, values are returned on a piaster (Ps) base, following the practice of most contemporaneous sources. This was due to the falling silver prices and the resulting limping gold standard of the late nineteenth century. In consequence, and even though the nominal value of £T1 remained Ps 100,the Ottoman empire established an official exchange rate of £T1= Ps 123 in May 1883.
Values must be supplied as denominations separated by a dash; i.e. £1 =’1-0-0’, Ps 245”20 = ‘0-245-20’ or ‘2-45-20’. For metric currencies, values are supplied as unit-hundreds-00; i.e. $4.78 = ‘4-78-00’.