I've tried several variations of the following script, but cannot figure out how to get the integer portion of a variable.
let>a=65.3
let>b=(int(a))
messagemodal>%b%
What am I doing wrong?
Thanks,
Kwiz
How to use the integer function?
Moderators: Dorian (MJT support), JRL
Never used "int". I use Separate>.
Code: Select all
let>a=65.3
Separate>a,.,res
MDL>res_1
Code: Select all
let>a=65.9
let>b={int(%a%)}
messagemodal>%b%
Basically, all complex expressions have curly braces outside and parenthesis inside. Also to resolve a variable in a complex expression requires the variable be enclosed in percents.