Use std::fixed
stream manipulator:
cout<<fixed<<"Bas ana: "<<x<<"\tSon faiz: "<<t<<"\tSon ana: "<<x+t<<endl;
More Related Contents:
- how do I print an unsigned char as hex in c++ using ostream?
- Floating point format for std::ostream
- Order of execution in operator
- Why uninitialized variable print a strange negative value? [duplicate]
- How do I print a double value with full precision using cout?
- uint8_t can’t be printed with cout
- overloading friend operator
- Why is address of char data not displayed?
- cout
- ‘printf’ vs. ‘cout’ in C++
- How can I pad an int with leading zeros when using cout
- how do I validate user input as a double in C++?
- How do I convert a double into a string in C++?
- C++ alignment when printing cout
- Prevent scientific notation in ostream when using
- Are all integer values perfectly represented as doubles? [duplicate]
- Why does streaming a char pointer to cout not print an address?
- cout or printf which of the two has a faster execution speed C++?
- Why is std::cout not printing the correct value for my int8_t number?
- How do I create my own ostream/streambuf?
- How do the stream manipulators work?
- how can I extract the mantissa of a double
- How to make cout behave as in binary mode?
- Should we generally use float literals for floats instead of the simpler double literals?
- Does std::cout have a return value?
- What is the difference between cout, cerr, clog of iostream header in c++? When to use which one?
- Correctly over-loading a stringbuf to replace cout in a MATLAB mex file
- Is there a null std::ostream implementation in C++ or libraries?
- How to use C++ std::ostream with printf-like formatting?
- Output aligned columns