Fix()

Fix() returns the whole part of a float number as an signed integer.

Syntax: int32 = Fix( value as single )

Example:

  dim a as single
  dim b as long
  a = 100.5
  b = Fix(a)  ' result: 100

See also: Floor(), Fround(), Fceil(), Frac()