Prueba
Código C:
Ver original#include <float.h>
#include <math.h>
#include <stdio.h>
bool chechSum(double a, double b)
{
if(copysign(a, b) == a &&
return false;
return true;
}
int main()
{
double a = 1.7976931348623158e+308;
double b = -0.01;
double s = 0;
if (chechSum(a, b)) {
s = a + b;
}
else
}