Fix
The Fix function rounds a floating-point number down to the
nearest integer. If the number is positive, then the decimal fraction
is truncated no matter how big it is (12.99 becomes 12). If the
number is negative, the number is rounded up (-12.99 becomes -12).
In math there is a function called floor that does something
similar. The function that behaves exactly like floor is
Int. The only differenct between Int and Fix is
the way that negative numbers are treated.
Response.Write "Int(12.6) = " & Int(12.6) Response.Write "Int(-12.6) = " & Int(-12.6)
|
 |

|