Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #107.80K
~4K People Reached
Favorite Forums
Favorite Tags
java x 1

1 Posted Topic

Member Avatar for perlsu

Just in case if someone need to format a double number to some specific fraction length. There is a class in java.text package called [B]NumberFormat[/B]. You can use [B].setMaximumFractionDigits(fraction)[/B] method to set the maximum fraction for double. Then use [B]format(doublevalue) [/B]method which returns string with the defined fraction length value. …

Member Avatar for mubin_89
1
4K

The End.