i am just doing the finishing on my project and i was wondering if anyone can help me, i cant figure out how to line up the output at the decimal place.
i know it is something to do with the " %.2lf " in the printf statement but i cannot figure it out.

Recommended Answers

All 3 Replies

i am using C not ++

Try use "%10.2lf" specificator format (a suggestion, you can use other values, of course :lol: ).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.