sure feel free to use and/or modify my Number extension ;)


On Feb 12, 2009, at 16:08, Dimitar Christoff wrote:


yeah, that's useful...

shame I just wrote a method that extends Number like so
nn.money(optionalCurrencySign)

It does not add separators so I may pinch bits of yours as well, if you
don't mind. For the prices I am having to deal with here, there's not
been a need to go over 1000 so not even thought of doing "1,000.00" yet
- but the way the pound is heading, who knows :)

It will probably be useful to also add methods like
amount.moneyAdd(newamount) (with stripping currency signs as needed),
.moneySubstract, amount.moneyTax(vatRate) etc etc.

thanks once again.


--
Jan - MooTools comitter
twitter/blog: http://kassens.net

Reply via email to