Thanks for pointing me to the native functions!
In the meantime I also found 1.8 has the Number object/function.
I just did Number(mynumberstring) to convert mynumberstring to a number.
I guess Number also accepts an object or another Number as argument..

On Sat, Apr 25, 2009 at 12:02 AM, RobG <rg...@iinet.net.au> wrote:

>
>
>
> On Apr 25, 2:06 am, Ananth Raghuraman <araghuram...@gmail.com> wrote:
> > Need prototype function to convert object/string/number to number. Please
> > help.
>
> Without a more concise specification for what the object/string/number
> might be, you will end up with a large function that works for a few
> scenarios invented by the author and fails for anything else.
>
> It doesn't make sense to have a function to convert a number to a
> number.
>
>
> --
> Rob
> >
>

--~--~---------~--~----~------------~-------~--~----~
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