[Javascript] type casting...
Walter Torres
walter at torres.ws
Sat Jun 28 15:17:40 CDT 2003
> -----Original Message-----
> From: javascript-bounces at LaTech.edu
> [mailto:javascript-bounces at LaTech.edu]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
More information about the Javascript
mailing list