did you import DecimalFormat?? if not,, it will obviously not known when you compile it..
you need to import it first from import java.text.DecimalFormat..
the "Math" class youve been using came...
Type: Posts; User: dicdic
did you import DecimalFormat?? if not,, it will obviously not known when you compile it..
you need to import it first from import java.text.DecimalFormat..
the "Math" class youve been using came...
try to parse your input to double (Double.parseDouble(input)) if input is string,, cast it to double if input is int..
then after that,, use DecimalFormat class,, it can format your double value the...