limiting numerical lengths in C++

  Tecno Dan 13:50 14 Feb 2004


I wonder if there are any C++ porgrammers out there?

I'm learning C++ and trying to follow a turorial on it, although I dont understnad how to limit numerical variables to 2 decial places. For example changing 1.11111 to 1.11

Im told you need the iomanip.h header files and use setiosflags(ios::fixed) stream modifier, but this does not mean anything to me.

hope someone can help

many thanks


This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Samsung Galaxy A8 review: Hands-on

Majority of illustrators don’t earn enough to live from, new survey shows

iPhone X problems

Word gratuit : comment télécharger le logiciel de Microsoft ?