Format Specfiers for long double and float
XC16 Version 1.6.0
Can someone tell me the appropriate format specifiers for sprintf with:
long double ADC;
Using type %f for both I get different results and both always result in a error messages:
main.c:93:5: warning: format '%g' expects type 'double', but argument 3 has type 'long double'
main.c:105:5: warning: format '%f' expects type 'double', but argument 4 has type 'float'
I could find nothing in the X16 manual. I tried a few other things. Looking on this forum there are some allusions to this but no answer that works.