title: /bin/bash printf does not work with other LANG than C
body: <p>I have a really weird problem with /bin/bash and a script that uses printf to format a string.</p>
  
  <p>My script looks like this</p>
  
  <pre><code>rt=$(printf "%.3f" 13.234324245)
  </code></pre>
  
  <p>with the difference, that i compute the number 13.23... above. When i use /usr/bin/zsh that works great! Even /bin/sh can do it (but it cant do the if stuff...)
  The biggest problem ist that /bin/bash seems to does not understand printf or does have another formating way when i dont use <code>LANG=C</code>. </p>
  
  <p>My LANG Variable is set to <code>de_AT.UTF-8</code> and then i get this Error:</p>
  
  <pre><code>/path/to/script: Zeile 12: printf: 13.234324245: Ungültige Zahl.
  </code></pre>
  
  <p>So it simply says that the number i gave printf is invalid...</p>
  
  <p>Do i need to run printf in a different way?</p>
  
  <p>edit: The problem seems to be on the computation of the number:</p>
  
  <pre><code>rt=$(printf "%.3f" $(echo "$res2 - $res1"|bc ))
  </code></pre>
  
  <p>how i can tell bc to use a <code>,</code> instead of <code>.</code>?</p>