Jump to content

number function


Richard
 Share

Recommended Posts

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...