Int
The Int function takes a floating-point number as an
argument and returns the integer portion of that argument. This
is the same as the floor function from mathematics.
The Fix function is very similar to Int in its
behavior. The difference is in the way that it treats negative
numbers. Int always rounds a number down so that a value
of -12.5 would become -13. Fix always rounds towards zero so
that a value of -12.5 would become -12.
Response.Write "Fix(20.2) = " & Fix(20.2) & "<BR>" Response.Write "Fix(8.9) = " & Fix(8.9) & "<BR>" Response.Write "Fix(-20.2) = " & Fix(-20.2) & "<BR>" Response.Write "Fix(-8.9) = " & Fix(-8.9) & "<BR>"
|
 |

|