Floor()

Floor() rundet auf die nächste Ganzzahl ab, jedoch abhängig vom Vorzeichen.

Syntax: Ergebnis = Floor( value as single )

Beispiel:

  dim a as single
  a=123.50011
  a = Floor(a)  ' Ergebis: 123.0
  a=-123.50011
  a = Floor(a)  ' Ergebis: -124.0

Siehe auch: Ftrunc(), Fround(), Fix(), Frac()