I have a variable "flop" it's a global number variable with the value as repeating 1's with a 16 digit length. "1111111111111111"
I goto display it to the screen via a text object called "Display".
So it's set up like this in the event sheet.
Every Tick -> "Display"-> Set text to "CC: "&ccn
With this code the number displays as "1111111111111111.1"
However if I do it this way
Every Tick->"Display"->Set text to ccn
It displays the number as intended "1111111111111111"
I don't understand why adding a string before the number variable would cause it to turn into a float all of a sudden and tag an extra .1 to the end of the number. Has anyone else run into this problem or is there something obvious I'm looking over here?
I've done some testing and if the length of the "11111..." number is equal to 15 it works fine. If it is equal to 17 it tags a 2 at the end instead of a .1
So it seems like it has something to do with the length of the number and the way it is being displayed?
Also I've checked in the debugging that the variable is in fact the right assigned value. It never changes value while in the debugger that I can tell.