BYOND Version: 410.975
Operating System: Windows XP Professional SP1
Web Browser: Firefox
Descriptive Problem Summary:
I'm actually not 100% sure this is a bug... though I am
positive I have done it before...
text2num doesn't seem to be evaluating addition and subraction, or any of the number operations.
I could have sworn it did this at one point, because I made a power procedure using it.
Code Snippet (if applicable) to Reproduce Problem:
var/number = text2num("1+2+3") // = 1
Expected Results:
It evaluates all of the included operations and returns the number.
Actual Results:
It returns the first instance of a number and ignores the rest.
Does the problem occur:
Every time? Or how often? Every time.
In other games? Haven't tried.
On other computers? Haven't tried.
In other user accounts? Haven't tried.
When does the problem NOT occur?
When you don't do it.
Workarounds:
Create a procedure that converts text strings to numbers and includes evaluation of number operations.