• Float variable processing
    In one of my project I am using ARM cortex m3. Here I am trying to print a float variable value into a string variable ex. sprintf(sVar, "%f", 22.23); the value returned in sVar is never correct. ...
  • Float variable processing
    In one of my project I am using ARM cortex m3. Here I am trying to print a float variable value into a string variable ex. sprintf(sVar, "%f", 22.23); the value returned in sVar is never correct. ...
  • Precision in float variables.
    Hi, I had simulated the following code using C166 compiler float idata fval; void main( void ) { char cnv_str[30]= {'\0' }; fval = 100.578; sprintf( cnv_str, "%f", fval ); printf("format_data_str...
  • Precision in float variables.
    Hi, I had simulated the following code using C166 compiler float idata fval; void main( void ) { char cnv_str[30]= {'\0' }; fval = 100.578; sprintf( cnv_str, "%f", fval ); printf("format_data_str...
  • Float variables not working in sprintf
    I am using uVison4 Compiler and STM32F103 Device. I using sprintf then float variables not working properly. Please help me. float fvalue; char cTest[10]; memset(cTest,0x00,sizeof(cTest));...