I need to program an arbitrary program that has to make use of setting precision to two decimal points, now I know that I can use "setprecision(n)" where n is the amount of significant figures, but how do I do it with an amount that I don't know the amount of digits to do it this way?
In delphi I believe you could just set the floating point to fixed, but I am not entirely sure as to how I would do that here.