I wrote a simple number formatter:

http://github.com/kassens/mootools-snippets/blob/master/Number.js

On Feb 11, 2009, at 19:01, Iain wrote:


It shouldn't be too hard to get what you want using mootools built-in
number natives:
http://mootools.net/docs/Native/Number

I'm sure a simple class could be created to add extra functionality.

Dimitar Christoff wrote:
I need to do some work to with altering money amounts live on-screen,
dependent on various user controlled options (delivery costs, vouchers, carbon offset and currency choice), probably needing to cast data types
from innerHTML-read strings.

Is there a class that can allow me to deal with floats / money
formatting maths, possibly currency signs outputs, or at least precision
rounding like php's number_format or printf etc?

does not need to be a mootools-specific class, searching this group for
money results in tons of spam :)

Cheers

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

Reply via email to