abs_i

Command: abs_i


Description

implemented by C/C++
long labs(long) and

Author
Diesmann
Synopsis
integer abs -> integer

References
Stroustrup 3rd ed p 661
Examples
-3 abs_i -> 3

File
sli/slimath.cc
Remarks
If you are not sure if the value is of type double or integer use abs.
If e.g. abs_d gets an integer as argument NEST will exit throwing an assertion.
FirstVersion