diff --git a/src/c/funktionen.c b/src/c/funktionen.c index 1796b2c..1674f5f 100644 --- a/src/c/funktionen.c +++ b/src/c/funktionen.c @@ -81,3 +81,8 @@ return floor(x); float ceilingValue(float x) { return ceil(x); } + +// Function to calculate the absolute difference between two numbers +float absoluteDifference(float x, float y) { + return fabs(x - y); +}