Thanks Eros, I wasn't too familiar with the Format$() function.
Why does this return 1? Eval_Math() returns 0 correctly. In my implementation, I'm blind as to what we're evaluating. So how do I tell which evaluator is right?
Your code checks to see if the number from string and the string are the same thing. If they are, it assumes it's a number. But in this case, it's different (for some reason unknown to me), so it's throwing it off.
Uses "Console"
Uses "Eval"
PrintL Evaluate("1 = 0")
WaitKey
Function Evaluate(strng As String) As String
Return Eval_String(strng)
End Function
Bookmarks