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
<araghuram...@gmail.com>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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to