Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot resolve symbol error

Status
Not open for further replies.

DotNetGnat

Programmer
Mar 10, 2005
5,548
IN
Guys,

I am getting the following error:

XNumber.java:10: cannot resolve symbol
symbol : method round (java.lang.Double)
location: class java.lang.Math
number = Math.round(d);

any suggestions...

-DNG
 
d must either be declared as a float or a double. Is it? Furthermore, if d is a float, number must be (or the result cast from) an int. Likewise, if d is a double, number must be (or the result cast from) a long.

_________________
Bob Rashkin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top