•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 392,043 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,267 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 468 | Replies: 4 | Solved
![]() |
•
•
Join Date: Jan 2008
Posts: 27
Reputation:
Rep Power: 1
Solved Threads: 0
Okay now I'm getting errors about doubles and integers the values in the database are stored as doubles
Type mismatch: cannot convert from double to int
136: double useful = columns.getDouble("Customer_Useful");
137: double nonuseful = columns.getDouble("Customer_NotUseful");
138: votes = useful + nonuseful;
139: double percentage = (useful / nonuseful) * 100;
Type mismatch: cannot convert from double to int
136: double useful = columns.getDouble("Customer_Useful");
137: double nonuseful = columns.getDouble("Customer_NotUseful");
138: votes = useful + nonuseful;
139: double percentage = (useful / nonuseful) * 100;
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
Similar Threads
- big integer calculator (C++)
- leaves and nodes mathematical expression (C++)
- Java Semantic Analyzer (Java)
- processing/modifying a string (C++)
- Logical operations and data-checks (Java)
- Homework Help (Java)
- Using binary operators! (C)
- defining mathematical symbols (Java)
- Data Abstraction (Computer Science and Software Design)
Other Threads in the JSP Forum
- Previous Thread: Adding text boxes and buttons dynamically
- Next Thread: How to imitate the closing on new reopen of Browser (Reseting Session)


Linear Mode