limiting numerical lengths in C++

  Tecno Dan 13:50 14 Feb 04
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.

Surface Pro (2017) vs Surface Pro 4

Where HTML5 is headed next

MacBook Pro v Surface Pro 5