in reply to Re^2: porting C code to Perl
in thread porting C code to Perl

For this particular use case, it doesn't matter, but with negative numbers, int and floor give different results (this is mentioned explicitly in the first link)