Math and Numbers
A couple of tips on dealing with math in Director.
Once created, the functions can be called like any method, even from within Lingo:
Here is a question that repeatedly appears in the newsgroups: Why do certain calculations produce incorrect results? The answer is always the same: you're doing integer math, and Director rounds integers. Use floats instead.Look at this example from the Message window:
To get the correct result turn one of the numbers into a floating-point, or real, number:
Or use the float method: