title: old-style simple cast precedence in c++
body: <p>I have some old-style casting in some c++ code which I would like to convert to new-style. I had a look to precedence and associativity operators <a href="https://en.cppreference.com/w/cpp/language/operator_precedence" rel="noreferrer">documentation</a>, but I failed to understand it.</p>
  
  <pre><code>( double ) myValueA() / myValueB()
  </code></pre>
  
  <p>is equivalent to </p>
  
  <pre><code>static_cast&lt;double&gt;( myValueA() ) / myValueB()
  </code></pre>
  
  <p>or to </p>
  
  <pre><code>static_cast&lt;double&gt;( myValueA() / myValueB() )
  </code></pre>
  
  <p>I suppose the answer will the same for other numerical operators (*/+-)</p>