Re: printing large numbers to LCD screen
There are a couple of issues with this particular piece of code. The Long data type can only store whole integer numbers; if you attempt to store a decimal number in one, it will drop the decimal values and only store the integer value. This may result in either inaccurate or zero'd values. Another issue is that the 'displayNextLCDNumber' command can only display integer numbers, as per ROBOTC's intrinsic values:
This is why you will see the overflow value (32767) of a integer, because you have essentially filled the memory space allocated to that variable.
Check out our Blog
! And our Facebook page
Need help? Take a look at our Wiki
and our Forums.I just met you,
And this is crazy,
But here's my code now,
So fix it, maybe?
~ Carly Rae Jepsen parody