[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 2191 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 7 days
Recommended Popular Threads Controvertial Threads
TPS Re-registration case still pending ..
To Sajha admin
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