M
mank
I have to write a method which is supposed to do the following -
When input is 2.00, it converts to $2
When input is 2.01, it converts to $2.01
When input is 2, it converts to $2
Is there any utility method in java which can do that?
When input is 2.00, it converts to $2
When input is 2.01, it converts to $2.01
When input is 2, it converts to $2
Is there any utility method in java which can do that?