Hello,
I tried the new feed of MARCUS "Slow Mouse Move" and I see I have some problem with Trunc or Round functions and perhaps with other complex expressions.
Little Test Macro :
Let>m=1.5
Let>mp={Trunc(%m%)}
MessageModal>mp=Trunc(1.5) %CRLF% %mp%
//OK Prints 1
Let>n=3
Let>m=n/2
Let>mp={Trunc(%m%)}
MessageModal>mp=Trunc(3/2) %CRLF% %mp%
// Prints : "Line: 7 Invalid parameters to TRUNC"
Let>n=3
Let>m={%n%/2}
Let>mp={Trunc(%m%)}
MessageModal>mp=Trunc(3/2) %CRLF% %mp%
// Prints : "Line: 12 Invalid parameters to TRUNC"
.
Trunc or Round functions
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Your macro works fine for me. I get:
mp=Trunc(3/2)
1
For all three messages.
Which version are you running?
mp=Trunc(3/2)
1
For all three messages.
Which version are you running?
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?