Originally Posted by adridu59
Originally Posted by RAND0M1ZER
That should work for you, the problem was you need to use %lf for doubles (long float), %f is for float.
Noticed that too but what I didn't understand is why "%.2lf" and not just "%lf".
%.2lf should also work. The only difference is the number of decimal places that are displayed. If you don't specify like with %lf, it will display all the decimal places.