I can't figure this out, there seems to be no way to convert a float to an integer
Documentation says that Math::Floor as well as Math::Round should return an integer, but they do not
Test code that shows all 3 values are returned as type 'real'. So how do I convert a to an integer to be able to use certain math operations correctly (i.e. modulus operator)
Documentation says that Math::Floor as well as Math::Round should return an integer, but they do not
Test code that shows all 3 values are returned as type 'real'. So how do I convert a to an integer to be able to use certain math operations correctly (i.e. modulus operator)
Code Select
a = 12.34;
b = Math::Floor(a);
c = Math::Round(a,0);
println(a);
println(b);
println(c);
println(typeof(a));
println(typeof(b));
println(typeof(c));
