autoit and adding numbers
"Simon Jaeger" <[email protected]> Mon, 13 Aug 2007 18:27:59 -0700
| Newsgroups | gmane.comp.windows.autoit.user |
|---|---|
| Message-ID | <00ae01c7de12$5a57a760$6401a8c0@simon6cbbe8619> |
Hello, I am working on a rather large project that is called virtual sound mixer. If anyone knows what JFW is this should help a little, but anyways, JFW is a screenreader, and it has a dll that can cause the program to say a string. I use this in my script. My main problem is that when I press the pan or volume keys, rather than subtracting, say, 0.05 off the volume until it reaches 0, it will subtract 0.050000000000000000357215408, which will make JFW say some seriously strange things. Especially when the number is so small that it makes it in to scientific notation. I have tried using the Round function with absolutely no results. round($sound[$number].pan,2) doesn't do anything except, if possible, make the numbers even more off. My question to everyone is, Do I have to make 40 if statements for every single function that involves panning and volume change, not to mention pitch shift, or is there a possibility of fixing this an easier way? Simon [Non-text portions of this message have been removed]