Documents
Writing Docs Gigedit SFZ Instrument Scripts NKSP Language NKSP Reference

round()

Rounds the passed number to the nearest integer and returns that rounded 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

round(number)

Arguments

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

Return Value

Data Type Description
Real Number Rounded 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(), floor(), real_to_int()

Availability

Since LinuxSampler 2.1.1.svn14.

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