[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 2855 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 200 days
Recommended Popular Threads Controvertial Threads
TPS to F1 Status.
TPS To F-1 COS
TPS Sakiyo Tara Case is in Court.
Got my F1 reinstatement approved within 3 months(was out of F1 for almost 2 years)
Has anyone here successfully reinstated to F-1 status after a year-long gap following a drop from F-1?
Need Help of IT consultancies
Nepal TPS decision
Supreme Court allows Trump to end TPS for Venezuelans
Any input on remote jobs(IT related or Sales or Marketing)?
2020 : Why No Trump !
Nepal Likely to Get 60-Day TPS Notice
Nepal TPS has been Extended !!!
ANA and AJAY KUMAR DEV. RAPISTS CONVENTION
NEPAL TPS IS GONE
#MAGA#FAFO is delicious
नेपाल मा B. sc गरियो यहाँ फेरी ७० -८० क्रेडिट पढ्नु पर्ने भो
Genuine Question.... Why so many folks still in TPS after 10 years. Is the statistics wrong?
Trump’s “Big Beautiful Bill” is straight-up xenophobic class warfare. Let’s call it what it is.
🛡️ Nepal TPS Holders: Don’t Panic About August 5 — DHS Screwed Up (Maybe on Purpose)
The New Color of Her Flag
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