title: Removing some digits after decimal point in C++
body: <p>I need to remove digits after decimal points but not all.</p>
  
  <p>For Example, double dig=3.1459038585 i need to convert it to dig=3.14</p>
  
  <p>I think i need to multiple dig to 100 then convert it to integer and then again convert to double and delete to 100 (All this will be 1 line). But is there any function to do this faster?</p>