removing values after decimal point

motherherder
06-04-2005, 12:05 PM
Hello All

To display coordinates, I have parsed in a float value using viewBox values divided by pixel values. The float numbers returned in the display have a long value after the decimal point.

Is there a way to remove all numbers after the decimal point.

Thanks for the help

Mo

Anonymous
06-09-2005, 02:17 AM
yes, use:
var integer=Math.floor(float)
cheers
Holger

 
Web mp2kmag.com
mapforums.com

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum