Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

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