I experienced such a system in the UK before 1971, when we had pounds, shillings and pence. We also had farthing, florins and crowns, but these were just names for coins of a particular denomination and were not official subunits.
In Malta before the euro, mils and cents were the subunits of the lira.