title: How can I best convert an integer to a floating point value without assigning to a variable?
body: <p>I would like to know how to convert from an integer to a floating point value, without assigning to an intermediate variable. The code in question looks like this:</p>
  
  <pre><code>Format('Theoretical peak scaling %6.2f', [ThreadCount])
  </code></pre>
  
  <p>This obviously fails at runtime because <code>ThreadCount</code> is an integer.</p>
  
  <p>I tried the obvious </p>
  
  <pre><code>Format('Theoretical peak scaling %6.2f', [Double(ThreadCount)])
  </code></pre>
  
  <p>and the compiler rejects that with</p>
  
  <pre><code>E2089 Invalid typecast
  </code></pre>
  
  <p>I know I can write </p>
  
  <pre><code>Format('Theoretical peak scaling %6.2f', [ThreadCount*1.0])
  </code></pre>
  
  <p>but that reads poorly and will just tempt a future maintainer to remove the multiplication in error.</p>
  
  <p>Does anyone know of a clean way to do this without an intermediate variable, and in way that makes the codes intent clear to future readers?</p>