| | |
Reducing floating point numbers.
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
For a program I'm writing I only need two digits past the decimal.I was a c programmer and the way I would have done this was
Is there anything like this in cout?
C++ Syntax (Toggle Plain Text)
printf("%2f",variable);
Last edited by Elfshadow; Jul 10th, 2007 at 6:02 am.
![]() |
Similar Threads
- Floating point numbers (C)
- Dynamic Array, Writing to CSV, Floating Point ?'s (C)
- FLOATING POINT.......Please (C++)
- IEEE Floating-point fromat (C)
- Floating point numbers (C++)
Other Threads in the C++ Forum
- Previous Thread: powers in c++
- Next Thread: winsock problem
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete deploy developer display dll dynamiccharacterarray email encryption error file format forms fstream function functions game generator givemetehcodez graph homeworkhelp iamthwee ifstream image input int java lib list loop looping loops map math matrix memory multiple newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg simple sorting string strings struct template templates text tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






