Truncate float to int?

Newbie question here: what's the best way to truncate a float to a
signed int? The fptosi instruction rounds, and the fptrunc
instruction simply truncates from a large float type to a smaller
float type.

Mark

fptosi is equivalent to a C cast from float to int.

-Eli

Thanks, I misread the assembly reference (I saw "nearest signed
integer" and missed the "rounding towards zero").

- Mark