#include <REGX52.h> unsigned char i; float x; void main() { x=0; for(i=1;i<=30;i++) {x+=1.3;} }
This should ideally produce an output of x=39.
But in debugger the value is shown as x=38.999999. What could be the issue?