limiting numerical lengths in C++

  Tecno Dan 13:50 14 Feb 04


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.

What is Amazon Go and will it come to the UK? The store without checkouts or queues

1995-2015: How technology has changed the world in 20 years

Hands-on with the Star Wars fighting drones you can fly yourself

15 macOS Sierra tips | How to use macOS Sierra: Secret tricks and best new features in Apple's new…