JavaScript: Cast a float as an integer?

Hello,

How can I cast a float as a integer in JavaScript?

Ive tried:

var Aint = (int) Bfloat;
var Aint = int (Bfloat);

but both launch an error

thanks a lot

How about:

var AInt : int = BFloat;

-Jon

Thank you so much

There's also parseInt(), which works for floats and (more importantly) strings.

--Eric