Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] type casting...
- From: walter at torres.ws (Walter Torres)
- Subject: [Javascript] type casting...
- Date: Sat Jun 28 15:17:45 2003
> -----Original Message----- > From: javascript-bounces@xxxxxxxxxx > [mailto:javascript-bounces@xxxxxxxxxx]On Behalf Of Hassan Schroeder > Sent: Saturday, June 28, 2003 2:03 PM > To: [JavaScript List] > Subject: Re: [Javascript] type casting... > > > 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()`. Oh yes! I forgot about those! Thanks jsWalter
- Follow-Ups:
- References:
- [Javascript] type casting...
- From: Hassan Schroeder
- [Javascript] type casting...
- Prev by Date: [Javascript] type casting...
- Next by Date: [Javascript] type casting...
- Previous by thread: [Javascript] type casting...
- Next by thread: [Javascript] setting and getting cookies across domains and folder paths using a shared iframe document- but does not work !
- Index(es):