Documentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Open topic with navigation
CAPL Functions » General » Function Overview » abs
abs
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE
Function Syntax
long abs(long x);
double abs(double x);
Description
Returns the absolute value.
Parameters
Value whose absolute value is to be returned.
Return Values
Absolute value of x.
Example
long x;
x = abs(15); // Result: 15