limiting numerical lengths in C++

  Tecno Dan 13:50 14 Feb 2004
Locked

hi,

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

Daniel

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

Elsewhere on IDG sites

Fujitsu Lifebook P727 laptop review

Best of the Grad Shows 2017: University of the West of England (UWE)

Best value Mac: Which is the best £1249 Mac to buy

Les meilleures GoPro 2017