vikrant
Junior Member level 2
sdcc sprintf
hi all,
i am doing some floating point calulation in p89v51rd2 uC in sdcc compiler it is happenning properly. But i want to use sprintf for floating point operation.
ex.
float f1 = 1.23;
char buffer[10];
sprintf(buffer,"%f", f1);
but buffer is not getting filled with proper floating point variable value as it has to be.
Can anybody have any library in which sprintf support floating point variables.
Please help
hi all,
i am doing some floating point calulation in p89v51rd2 uC in sdcc compiler it is happenning properly. But i want to use sprintf for floating point operation.
ex.
float f1 = 1.23;
char buffer[10];
sprintf(buffer,"%f", f1);
but buffer is not getting filled with proper floating point variable value as it has to be.
Can anybody have any library in which sprintf support floating point variables.
Please help