Skip to content

Instantly share code, notes, and snippets.

@PARC6502
Created October 25, 2016 14:09
Show Gist options
  • Save PARC6502/e4a2e528d7b7c7b5dfb8c231c3dcc160 to your computer and use it in GitHub Desktop.
Save PARC6502/e4a2e528d7b7c7b5dfb8c231c3dcc160 to your computer and use it in GitHub Desktop.
How many pounds? 12
How many shillings? 3
How many pence? 4
That is 12.17 in decimal currency
16.67 in old money is L16.13s.4d
Old L s d
16.67 16 13 4
97.75 97 15 0
How many pounds? 1
How many shillings? 19
How many pence? 11
That is 2.00 in decimal currency
0.07 in old money is L0.1s.4d
Old L s d
0.07 0 1 4
999.99 999 19 9
How many pounds? 0
How many shillings? 0
How many pence? 0
That is 0.00 in decimal currency
0.01 in old money is L0.0s.2d
Old L s d
0.01 0 0 2
0.99 0 19 9
How many pounds? 999
How many shillings? 0
How many pence? 0
That is 999.00 in decimal currency
0.00 in old money is L0.0s.0d
Old L s d
0.00 0 0 0
0.00 0 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment