[Javascript] type casting...

Hassan Schroeder hassan at webtuitive.com
Sat Jun 28 14:02:51 CDT 2003


J.R. Pitts wrote:

> I just thought maybe js had a specific casting method.

Uh, actually, yes --
	
endMinutes = (endTime.substring(0,2)*60) + parseInt(endTime.substring(3,5));

There's also `parseFloat()` and an explicit `toString()`.

FWIW!
-- 
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                           dream.  code.





More information about the Javascript mailing list