floor

ds2.1.1/lib/doc/efun/all/floor · 250 B

From the archive ds2.1.1.zip

Download the archive   « Back to the archive contents

floor - round a float down to the nearest integer

float floor( float f );

This efun is only available if PACKAGE_MATH is compiled in.

Returns (as a float) the nearest integer number equal to or smaller than f.

See also:
 ceil,
 to_int,
 to_float

Site Stats

Snippets: 1791
Codebases: 571