All numbers are changed to floats, with a .0
concatenated to the end.
I have tried parseInt
, toFixed
, round
, floor
and every other obvious choice.
A simple example:
Logger.log(list.length);
the log shows float values of type "Number" with a value of 5.0
for the length.
Any attempt to add numbers results in the same
for (i in [1,2,3,4,5]) {
count++;
Logger.log(count);
}
The log still shows float values
I would expect Array.length
to return an integer