Initiating an integer in Java
Hi all,
I am certain there is any easy answer to this question, however I have been unable to find one online.
I am trying to calculate a division within the JS object, but I would like it to divide as an integer variable normally would and not as a float as it is doing currently. I am using a modulus calculation for dealing with the remainder.
The only type of variable that seems to compile is 'Var' but this does not allow me to specify whether it is an integer or float.
Any help on the correct syntax to declare the variable as an integer would be greatly appreciated!
Thanks.