title: How can i use floating point numbers in VHDL?
body: <p>I'm trying to create RGB to YUV converter in VHDL. </p>
  
  <pre><code>Y = 0.299 x R + 0.587 x G + 0.114 x B
  
  U = -0.147 x R - 0.289 x G + 0.436 x B
  
  V = 0.615 x R - 0.515 x G -0.100 x B
  </code></pre>
  
  <p>In this formula I have to use and multiple floating point numbers like <code>0.299</code>, <code>0.587</code>, etc. How do I create synthesizable VHDL with floating point numbers? </p>