|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: C++ Program to Determine Cost Per Student for Regional
import <math.h>
use ceil (advisor) to round up |
|
#2
|
||||
|
||||
|
Re: C++ Program to Determine Cost Per Student for Regional
Hmm I tried all of those things
Quote:
|
|
#3
|
|||||
|
|||||
|
Re: C++ Program to Determine Cost Per Student for Regional
I think it's because boys and girls are integers and it is doing integer division. It already drops the decimal before ceil can round it up. Either declare boys and girls as floats or convert them within the ceil function.
Last edited by kevin.li.rit : 10-01-2009 at 20:26. Reason: spelling. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Any Teams in NJ want to Split the cost for a field, setup practices?!? | nHouse | General Forum | 28 | 04-02-2009 22:23 |
| For FRC Student Machinists | Dasistmeinmoped | General Forum | 25 | 15-01-2008 12:13 |
| Cost Accounting for 2005 breaker panel | Peter Matteson | Rules/Strategy | 0 | 24-01-2006 14:01 |
| A hard decision for a college student | Elyse Holguin | Chit-Chat | 7 | 15-09-2004 19:37 |
| how would U determine the exact speed of your robot? | HolyMasamune | General Forum | 4 | 29-01-2003 09:44 |