Currency format?
#3

There could be an easier way, but i think you could use a classy way of calculating using modulus (%) and division for the ones, tens and hundreds by doing value % 1000, thousands, ten thousands and hundred thousands by floor rounding the result of value / 1000, and so on. Then just use format for each break, and calculate cents.. not sure how you would like that done but thats how I would do it. Could take a little bit of tweaking initially but yeah.
Reply


Messages In This Thread
Currency format? - by Jack_Leslie - 07.09.2011, 08:20
Re: Currency format? - by PrawkC - 07.09.2011, 08:21
Re: Currency format? - by Pghpunkid - 07.09.2011, 08:26
Re: Currency format? - by Jack_Leslie - 07.09.2011, 08:28
Re: Currency format? - by RyDeR` - 07.09.2011, 15:22
Re: Currency format? - by Jack_Leslie - 07.09.2011, 23:48
Re: Currency format? - by Scenario - 08.09.2011, 00:06

Forum Jump:


Users browsing this thread: 3 Guest(s)