Richard Posted December 17, 2009 Posted December 17, 2009 This is correctly displaying 15 $c=(1+2)*sqrt(25) $a= number($c) MsgBox(0, 'Testing', $a ) ------------------------------------ And this is correctly displaying 0 $c="(1+2)*sqrt(25)" $a= number($c) MsgBox(0, 'Testing', $a ) How can one make a string evaluate with the number function? I you enter the formula in an inputbox for example it will be a string. So is there a way to remove the "" from the second example and make it give the
Developers Jos Posted December 17, 2009 Developers Posted December 17, 2009 $c="(1+2)*sqrt(25)" $a= number(execute($c)) MsgBox(0, 'Testing', $a ) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Richard Posted December 17, 2009 Author Posted December 17, 2009 The conversions should happen automatically. For Example: $Val="20"*"2" MsgBox(0,"",$Val) I want the complete formula as 1 string, not only the numbers
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now