[Show all top banners]

user01
Replies to this thread:

More by user01
What people are reading
Subscribers
:: Subscribe
Back to: Computer/IT Refresh page to view new replies
 Results don't MATCH - WTF is up with this CODE.. HELP
[VIEWED 2165 TIMES]
SAVE! for ease of future access.
Posted on 10-15-14 4:22 PM     [Snapshot: 1]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Per documentation my results should show as follows:

Seconds Distance
================
1 16.1000
2 64.4000
3 144.9000
4 257.6000
5 402.5000
6 579.6000
7 788.9000
8 1030.4000
9 1304.1000
10 1610
11 1948.1000
12 2318.4000

I can't get it show decimal places, can anyone shed some light with this question. Also, I have tried placing setprecision (4) in my cout statement with no change. HELP
 
Posted on 10-15-14 6:13 PM     [Snapshot: 116]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

this link might be helpful..:)
http://stackoverflow.com/questions/16280069/show-two-digits-after-decimal-point-in-c
 


Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 90 days
Recommended Popular Threads Controvertial Threads
TPS Re-registration case still pending ..
ChatSansar.com Naya Nepal Chat
Toilet paper or water?
Biden out, Trump next president, so what’s gonna happen to TPS, termination?
Anybody gotten the TPS EAD extension alert notice (i797) thing? online or via post?
Tourist Visa - Seeking Suggestions and Guidance
advanced parole
Sajha Poll: Who is your favorite Nepali actress?
Problems of Nepalese students in US
ढ्याउ गर्दा दसैँको खसी गनाउच
Mamta kafle bhatt is still missing
अरुणिमाले दोस्रो पोई भेट्टाइछिन्
News Summary from Nepal for Saturday, July 20, 2024
Biden formally Stands Down!!!
TPS extension Petition!!!
KP Oli and Nepali Political Corruption
Nepali Passport Renewal
seriously, when applying for tech jobs in TPS, what you guys say when they ask if you have green card?
Are Nepalese cheapstakes?
Nepali Psycho
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters