Can you use the native parseInt() function? or parseFloat()?
var num = parseInt("52");
console.log(num); // int 52-Hector On Fri, Apr 24, 2009 at 9:06 AM, Ananth Raghuraman <[email protected]>wrote: > Need prototype function to convert object/string/number to number. Please > help. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
