Fix returns d truncated, rounded toward zero. The truncation is performed with ceil and floor (see floor(3)). If the value is positive it is rounded to the greatest integer less than it. If the value is negative it is rounded to the least integer greater than it. This function implements the BASIC FIX function.
from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber