In an effort to correct the problem I have gone through and changed all participating variables to read as such, hoping it was simple formatting issue.
public Compactdisk()
// 4 fields need to be set up
{
name = "";
price = .00f;
itemno = 0;
nstock = 0;
i = 0;
value = .00f;
}
Nothing changes. The math is still right, but $20.00 shows as $20.0
If I put in an off price, such as 10.51 everything except the total is then right. The total will carry out how ever many spots it needs. 50.2345555 for example.
I just need these fields to round to a two digit decimal place.
Last edited by no1zson : Jul 27th, 2007 at 1:17 pm.
I never drew first, but I drew first blood.
I'm no ones son, unforgiven.