djc
Advanced Member level 1
Hi all,
Can anybody please suggest me a logic to separate decimal part and fraction part of a number using C. Say i have a current value of 12.15 mA and corresponding ADC value is 155.2. Now i will convert it using some formula to original value 12.15. Now how to separate fraction and decimal part using C and display it on 4 FND's connected on PORT B1,B2,B3 and B4. I can display direct ADC value on FND like 123 or any other ADC value directly on FND but separation is the issue now .I am using PIC16F72 and mickroC PRO for PIC. Please guide
Thanking You
Can anybody please suggest me a logic to separate decimal part and fraction part of a number using C. Say i have a current value of 12.15 mA and corresponding ADC value is 155.2. Now i will convert it using some formula to original value 12.15. Now how to separate fraction and decimal part using C and display it on 4 FND's connected on PORT B1,B2,B3 and B4. I can display direct ADC value on FND like 123 or any other ADC value directly on FND but separation is the issue now .I am using PIC16F72 and mickroC PRO for PIC. Please guide
Thanking You