I am from Bosnia And Herzegovina. Our currency is Convertible Marka (KM), and Banknote are: 200, 100, 50, 20, 10 KM, and the Coins in denomination of 5, 2, 1, 0.50, 0.20, 0.10 and 0.05 KM. I need formula that will amount of, for example, 657.55 automatic divide into Banknotes and Coins, by shortest route.
Download Example.
Sorry for "my" english.
Thanks.