Sign in to follow this  
Followers 0
Richard

number function

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0