title: How to convert reading ADC Value to Float?
body: <p>I want to convert ADC Values to float numbers. 
  This is my code:</p>
  
  <pre><code>uint32_t ADCValue;
  char str[15];
  
            ADCValue = HAL_ADC_GetValue(&amp;hadc1);
            ADCValue=ADCValue*3.3/4095;
            sprintf(str, "%d", Voltage);
            HAL_UART_Transmit(&amp;huart2, (uint8_t*)(&amp;str), 6, 100);
            HAL_UART_Transmit(&amp;huart2, (uint8_t*) "\n\r", 2, 100);
            HAL_Delay(500);
  </code></pre>
  
  <p>I am reading value of 4095 at 3.3V but I am transmitting 3 to buffer. I want to transmit exact value of voltage.</p>