Documents
Writing Docs Gigedit SFZ Instrument Scripts NKSP Language NKSP Reference

floor()

Rounds the passed number down to the nearest, lower integer and returns that rounded-down value as result (by preserving the passed Real Number's data type for the return value though). The originally passed number itself remains untouched by this function.

Function Prototype

floor(number)

Arguments

Argument Name Data Type Description
number Real Number The real number to be rounded down.
[required]

Return Value

Data Type Description
Real Number Rounded-down Real Number of the originally passed number.

Remarks

This functions accepts any standard unit and finalness for its argument number. The return value's standard unit and finalness is identical to the passed number's one.

Examples

None yet.

See also

ceil(), round(), real_to_int()

Availability

Since LinuxSampler 2.1.1.svn14.

Document Updated:  2019-09-16  |  Author:  Christian Schoenebeck