title: How to convert hex to float
body: <p>I have to convert <code>hex</code>, represeneted as <code>string</code>s (e.g. <code>"0xC40C5253"</code>) to float values (<em>IEEE-754</em> conversion). I did not manage to do that using the strconv.ParseFloat function. Is there anything else I have to use?
  I couldn't find it so far. I also tried converting it to an integer first and then to a float, but the results were wrong.</p>
  
  <p>Code of my last try:</p>
  
  <pre><code>package main
  
  import (
    "fmt"
    "strconv"
  )
  
  func main () {
    x, err := strconv.ParseInt("C40C5253", 16, 64) 
    f, err := strconv.ParseFloat(fmt.Sprintf("%d", x), 64) 
  
    if err != nil {
      fmt.Printf("Error in conversion: %s\n", err)
    } else {
      fmt.Println(f)
    }
  }
  </code></pre>