LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Using cout.precision() (http://www.linuxquestions.org/questions/programming-9/using-cout-precision-617221/)

dewjunkie 01-29-2008 03:02 PM

Using cout.precision()
 
I think I know the answer to this question, but I'd like to know for sure.

To be able to use

cout.setf(ios::fixed);
cout.setf(ios::showpoint);
cout.precision(x);

I have to use float instead of int right?

int is for intergers if I am not mistaken, but I'd like to know for sure.

Thx!

Tinkster 01-30-2008 11:26 AM

Looks like a C++ question to me - moved to programming.


All times are GMT -5. The time now is 10:24 AM.