Hey, I have a problem, I need eval function to calculate some function
given in String like for example Math.cos(5+7); etc
I have been messing up with that piece of code, as of now just to return
ints however I have failed badly.
public static native int myMethod(String arg) /*-{
eval("var myVar = '" + arg + "';");
return myVar;
}-*/;
Any idea how to modyficate that piece of code to return float from lets say
Math.cos(5+7) ?
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.