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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why would would it not evaulate the function?

Status
Not open for further replies.

static786

Programmer
Feb 13, 2006
23
GB
var newXmin = minX + mapXChange;

where the respective values equal: minX = 392362.036001 and mapXChange = -7110.230129734288

alert(newXmin);

gives the alert box saying "392362.036001-7110.230129734288", any reason why it does it not show the evaluated value i.e. 385251.8059?

I tried testing out the code independantly with just them two varoables and it seems to work fine, but in my program it does'nt?
 
cheers for the reply. the solution u provided works, but I use alot of flout numbers throughout the code - will i need to use the parsefloat() method on every float variable?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top