Dave Methvin schrieb: >> True, but in this case you aren't really type-converting to a number, >> you're actually wanting to extract a number from a string. >> > > Yeah, I just saw the gleam in Jörn's eye and knew he was thinking about > changing the parseInt/parseFloat to + in jQuery core. There are a lot of > places where strings with trailing units are converted to numbers, and + > isn't appropriate there. > Now that you mention it... :-) Actually I just added it to my ever-extending repository of available JS tricks.
-- Jörn Zaefferer http://bassistance.de _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/