Documents
Writing Docs Gigedit SFZ Instrument Scripts NKSP Language NKSP Reference

abs()

Returns the absolute value of the passed value argument. That means, if a positive number or zero is passed, then the same number is returned. If however a negative number is passed, then the signment of the number is flipped to positive. So it behaves like simply removing the minus sign if any.

Function Prototype

abs(number)

Arguments

Argument Name Data Type Description
number Integer Number The number to convert.
[required]

Return Value

Description Data Type
Absolute value of the passed number. Integer Number

Examples

Document Updated:  2017-04-21  |  Author:  Christian Schoenebeck