I want to create a custom NumberFormat which returns empty string for negative values and the double number iteslf for +ve and zero values. Please guide me....................
gunjannigam 28
Junior Poster
Recommended Answers
Jump to PostI want to create a custom NumberFormat which returns empty string for negative values and the double number iteslf for +ve and zero values. Please guide me....................
Hello,
This is for you.
public class CustomNumberType extends Number{ public double doubleValue() { return 0; } public float …
All 4 Replies
puneetkay 40
Junior Poster
gunjannigam 28
Junior Poster
javaAddict 900
Nearly a Senior Poster Team Colleague Featured Poster
gunjannigam 28
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.