Servoy 4.0 rc 1

I am sorry but I don’t understand completely.

application.output(10) yields 10.0 - a non-integer value - b/c there are no integers in JS.

If I create var foo = 10;

10 is really 10.0, it will never be 10.

Now if you are saying that behind the scenes Servoy is doing some casting to a Java Integer for all variables of type “Integer” then so be it, but within servoy methods, 10 is a double. So my question is, is there a technical difference in Servoy 4 between a variable type of “number” and a variable type of “integer?” If there is, what is it? If there is not, then why have both?

Again, thanks for all the replies!