using remainder in PIC programming using C.

Status
Not open for further replies.

furqankaimkhani

Member level 4
Joined
Sep 10, 2010
Messages
79
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Visit site
Activity points
1,946
MA4=MASTER; //MA4 is an unsigned int32. Master is a float.
MA3=(MA4%1000000); //e.g. If MA4 is 123456 then what will the
MA4=(MA4/1000000); //MA1, MA2, MA3 and MA4 have at last.
MA2=(MA3%10000);
MA3=(MA3/10000);
MA1=(MA2%100);
MA2=(MA2/100);
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…