Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-29-2008, 03:02 PM   #1
LQ Newbie
Registered: Jan 2008
Posts: 2

Rep: Reputation: 0
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


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.

Old 01-30-2008, 11:26 AM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
Looks like a C++ question to me - moved to programming.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
C++: cout problem tntcoder Programming 3 08-02-2007 10:13 PM
cin/cout part of c or just c++ true_atlantis Programming 4 02-25-2006 06:54 PM
c++ cout not working :( Longinus Programming 10 08-01-2004 07:32 PM
C++ boolean in cout statement AMMullan Programming 2 06-08-2004 12:44 PM
cout queues miguetoo Programming 4 03-17-2004 02:02 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration