Jump to content
Sign in to follow this  
laffo16

Conv String (containing an equation) to Number

Recommended Posts

laffo16

Simple question but not sure if im missing a function here,

how do i convert a string containing an equation into a resulting number.

eg. (doesnt work: = 0)

$var = "(5/2.8)*2"

$var = Number($var)

MsgBox(0, "1", $var)

$var recieves the equation in text format from a seperate program.

Edited by laffo16

Share this post


Link to post
Share on other sites
laffo16

should of searched first t.t my bad, it appears

Execute() is what i need.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.