Once every second, the following is executed
f1 = f1 + (1/3600);
Once f1 reaches to 4096.0, f1 stops incrementing.
How to work around this. I need is a variable that can hold a bigger number forever. So I choose 'float'
unsigned long L1;
L1 = 4000000000; // (four billion)
f2 = L1;
When I print f2, it shows -4000000000 (Negative four billion).
Any idea would be appreciated.
BTW, I am using Dynamic C9.21 compiler with RCM3100.