I hate giving advice. If anyone is paying attention, check me. To keep from lossing a penny, rather than store you numbers as floats, store them as a count of pennies. So that 45.95 becomes 4595.
Then do like this... http://blogometer.com/repository/etude/jQuery/discuss/sum-prices/sum.html Divide and modulo by 10 to build your array. * Glen Lipka <[EMAIL PROTECTED]> [2006-11-22 00:51]: > Yes, I would need to do exactly that. > I am working now on adding up all the checked boxes using parseFloat to > convert them. Is that the best way? They are strings, I guess. > > When you say, plugin worthy, which are you talking about? > >Not sure I follow. Are you looking to convert ... > > > >var x = 179.95 > > > >to > > > >var x = [1, 7, 9, 9, 5] > > > >? > > > >Then feed that to your number presentation widget, which is plugin > >worthy, by the way. -- Alan Gutierrez - 504 717 1428 - [EMAIL PROTECTED] - http://blogometer.com/ Think New Orleans - http://thinknola.com/ _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
