For example in this code, why the second message (the variable var4) is 2.5 and
not 2 ?
Code: Select all
var1 := 5
var2 := 2
var3 := var1 / var2
var4 := integer (var1 / var2)
MsgBox, %var3%
MsgBox, %var4%
Code: Select all
var1 := 5
var2 := 2
var3 := var1 / var2
var4 := integer (var1 / var2)
MsgBox, %var3%
MsgBox, %var4%
Code: Select all
var4 := round(var1 / var2)