Originally Posted by Philip M
var d = parseInt(days)
var d = Math.floor(days);
parseInt is for converting numbers between bases - eg binary to decimal, hexadecimal to decimal or even base 36 to decimal.
Helping others to solve their computer problem at http://www.felgall.com/