Jacque- Wednesday, January 30, 2013, 7:59:42 PM, you wrote:
> on makeChange pAmt > repeat for each item i in "50,20,10,5,2,1" > put i &"="& pAmt div i & cr after tList > put pAmt mod i into pAmt > end repeat > filter tList without "*=0" > put tList into fld "change" > end makeChange Mod - nicely done. I hadn't thought of the solution of sorting by coin type. So I get 74 = 50=1 20=1 2=2 -- -Mark Wieder [email protected] _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
