Digit limitation from decimal point in C++
<p>I'm new in  C++.I have double variable <code>double a=0.1239857</code>  I want to limit variable <code>a</code>
 from decimal point two digits.So <code>a</code> will be <code>0.12</code>. I know   C++ have functions that return largest or smallest integer that is greater or lower than <code>a</code> like ceil or floor.Is there a function that implement digit limitation of floating-point variable? Or How can i change precision of <code>a</code> variable?</p>

<p>Best  regards...</p>
