Turn Negative Numbers Positive
#include <math.h> long double turnPositive(long double input){ return sqrt(pow(input, 2)); }
A dark-themed C/C++ code snippet defines a function called turnPositive that squares an input and takes its square root. The joke is that this mathematically returns the absolute value, humorously presenting a simple mathematical operation as a function for making anything “positive.”
- @ithueti / 2916 2020-10-09
- Type
- image
- Size
- 366×90 · 5.7 KiB
- Mood
- nerdy, sarcastic
- Language
- en
- Added