hi,
I want to write a small program that averages some numbers together, but to do that, I can do the adding part, but I can't get the program to output a decimal. I f i use java.lang.Math.round(total,2) then i get this error message:
Code:
brian@brian-linux:~/Documents/java> javac avg.java
avg.java:514: cannot find symbol
symbol : method Round(double,int)
location: class java.lang.Math
double round = java.lang.Math.round(total,2);
^
1 error
did I do something wrong?
thanks,
rabbit2345