beautypg.com

Floor – AMT Datasouth PAL User Manual

Page 109

background image

103

floor

floor

Description

Returns the next lower integer value.

Usage

AnyNum

floor

FloorNum

AnyNum

Integer or fixed-point. Value to reduce to the next lower integer.

FloorNum

Integer or fixed-point. Next integer value at or below AnyNum. The type of the
returned value matches the type of the supplied parameter.

Comments

Although this operator will accept integer values, this operator has no affect upon integers. The
following table shows the affect of the floor operator upon various fixed-point values.

1.6

floor

1.0

1.5

floor

1.0

1.4

floor

1.0

1.0

floor

1.0

0.0

floor

0.0

-1.0

floor -1.0

-1.4

floor -2.0

-1.5

floor -2.0

-1.6

floor -2.0