• 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...
  • Using float variable
    Hello everyone ! I have a problem with the float variables. For example, i define float a = 123456123456.1234 and char lcd[30]; I used sprintf function to convert a to string and store into...
  • 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...