Hello, I'm back again
I've a bit a strange problem: Somewhat like a variable underflow
This is when writing something like 9e-6 in a variable. It would'n bother me, if it's handled like a string or a number. But it has to be correct!
Check it out yourself:
//Initialisation of global variables
//Set the delay between sending characters in milliseconds
Let>SK_DELAY=20
//Start all programs maximised
Let>RP_WINDOWMODE=3
//Wait after starting a program until it is idle
Let>RP_WAIT=2
//Test exponential write
RUN>C:\winnt\system32\notepad.exe
SetFocus>Untitled - Notepad
Let>BER=9e-6
Send>%BER%
exponential-underflow??
Moderators: Dorian (MJT support), JRL
-
- Pro Scripter
- Posts: 58
- Joined: Mon Jun 27, 2005 7:03 am
- Location: Switzerland
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
I think you mean either:
Let>BER=9e1-6
Answer = 84
Or, if you want to force it to be a string:
Let>BER={"9e-6"}
Answer 9e-6
Let>BER=9e1-6
Answer = 84
Or, if you want to force it to be a string:
Let>BER={"9e-6"}
Answer 9e-6
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
-
- Pro Scripter
- Posts: 58
- Joined: Mon Jun 27, 2005 7:03 am
- Location: Switzerland