Hidy ho all, I have a homework assignment where I have to calculate the amount of hours someone parked in a parking lot.
For every hour (or part of an hour) parked greater then 2 I need to charge them a bit more.
now I can do that math easily enough. trouble is, I don't know if its possible to round up a double.
my code has to involve a class. And, I think I know how to do that. My trouble is, I don't know how to round up doubles. Can you round up doubles?