Look closely at your use of the 4 variables. You need to think through why you have those variables and what each are used for.
Type: Posts; User: Norm
Look closely at your use of the 4 variables. You need to think through why you have those variables and what each are used for.
Does the newly posted code work correctly? If not please show its output and describe what is wrong with it.
In your code you have 4 class variables. What are they all used for? When are they...
Another way to round vs using the awkward if tests:
(int)(dblVal + 0.5)