dariush_abbasi
Member level 3
Hi dear friends.
I have a strange problem :
when i use this code :
The LCD shows 42 which is normal.
but using this code:
The LCD shows 00 which i can't figure out why!
I have a strange problem :
when i use this code :
Code:
int Whole = 0;
int On = 0;
int Percent = 0;
int Temp ;
On = 42;
Whole = 100;
Percent = (On*100) / Whole;
Temp = Percent;
but using this code:
Code:
int Whole = 0;
int On = 0;
int Percent = 0;
int Temp ;
On = 42;
Whole = 100;
Percent = (On / Whole)*100;
Temp = Percent;