• 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));...
  • 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...
  • Help with float variable and UART transmission
    Hi everyone I'm having trouble reading the right values from the uart using a serial port logger. I'm using the cygnal C8051F124 uc and I send in four bytes a float variable by the UART0 To convert...