RSS Forums RSS
Please support our Java advertiser: Lunarpages Java Web Hosting

First JLIST, used with GUI Inventory

Join Date: Jul 2007
Posts: 186
Reputation: no1zson is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
no1zson's Avatar
no1zson no1zson is offline Offline
Junior Poster

Re: First JLIST, used with GUI Inventory

  #42  
Jul 27th, 2007
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.
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 6:43 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC