•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 455,970 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 3,773 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 Java advertiser: Lunarpages Java Web Hosting
Views: 707 | Replies: 3 | Solved
![]() |
You'll need to use a formatter like DecimalFormat or String.format().
java Syntax (Toggle Plain Text)
float value = 0.60f; DecimalFormat df = new DecimalFormat("0.00"); String formattedValue = df.format(value);
•
•
Join Date: Nov 2007
Location: Coimbatore-India
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 1
![]() |
•
•
•
•
•
•
•
•
DaniWeb Java Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Floating point multiplication, precision issues (C++)
- floating point : overflow error (C)
- Dynamic Array, Writing to CSV, Floating Point ?'s (C)
- IEEE Floating-point fromat (C)
- Floating Point Representation (Computer Science and Software Design)
- Drop 0 in floating point variable 0.233 (C++)
- a simple way to print a binary representation of a floating point number? (C++)
- Floating point numbers (C++)
- floating point (C++)
Other Threads in the Java Forum
- Previous Thread: map ResultSet to objects
- Next Thread: Query about static nested classes



Linear Mode