>Number 5.75
>Expected output:5.75%
>Output is 575%
>which is wrong since the expected output is 5.75%
Maybe your expected output, but the java.text.DecimalFormat class specifies that the % sign should: Multiply by 100 and show as percentage.
It is designed for the case where you do the calculation. eg 8/10 on the
test translates as 80%, not 0.8%