title: How to get absolute value from double - c-language
body: <p>I want the absolute-value from a negative double - and I thought the <code>abs</code>-function was as easy to use as in java - but NOT!</p>
  
  <p>It seems that the <code>abs</code>-function returns an int because I have the value 3.8951 and the output is 3.000000</p>
  
  <pre><code>double d1 = abs(-3.8951);
  printf("d1: ...%lf", d1);
  </code></pre>
  
  <p>How can I fix this problem? That is - I want the absolute value of a <code>double</code>.</p>