• 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));...
  • 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 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. ...
  • Data transmission for float variables by uart0
    hi everyone I'm looking for a good alogrithm to send a float variable to a PC by the serial port. First I have to separate the float variable in bytes to be read to send by the serial port. do i...
  • unsigned long and float variables corrupted
    Hi everyone I was working with float and unsigned long variables and I use the cygnal 8051 mcu it has xdata and idata 8k and 256.. when I put these variables in idata works fine but when I put...