Added some examples to the percent method documentation to show how it formats.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1499 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -62,6 +62,10 @@ public class StringTool
|
||||
|
||||
/**
|
||||
* Convert a float to a nicely formated percent string.
|
||||
* Examples:
|
||||
* .34 "34.00%"
|
||||
* .341 "34.10%"
|
||||
* .34121 "34.121%"
|
||||
*/
|
||||
public String percent (float value)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user