| Name: | abs - absolute value
|
| Synopsis: | value abs -> value
|
| Description: |
implemented by C/C++
long labs(long) and
double fabs(double)
Alternatives: Functions abs_i for integers, abs_d for doubles
(SeeAlso) -> behaviour and synopsis are the same.
|
| Examples: |
-3 abs -> 3
3 abs -> 3
-3.456 abs -> 3.456
|
| 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.
|
| Author: | Diesmann, docu by Sirko Straube
|
| FirstVersion: | 27.4.1999
|
| References: | Stroustrup 3rd ed p 660, p 661
| SeeAlso: | abs_i abs_d |
|
| Source: | /home/abuild/rpmbuild/BUILD/nest-2.4.1/lib/sli/typeinit.sli
|