Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Converting Java Float To String Without Exponential Scientific Notation

The data type Float consumes less memory when it comes to storing numbers with decimal points. Although this is the edge of it, the disadvantage is that it's not precise. In one of our posts, we discussed that the result of converting float to String is in Scientific Notation form. Now we show examples on how to convert float to String in Java without exponential or scientific notation.:



This post first appeared on Grails Cookbook, please read the originial post: here

Share the post

Converting Java Float To String Without Exponential Scientific Notation

×

Subscribe to Grails Cookbook

Get updates delivered right to your inbox!

Thank you for your subscription

×