getRealComparison function

int getRealComparison(
  1. double firstReal,
  2. double secondReal
)

Implementation

int getRealComparison(
    double firstReal,
    double secondReal
    )
{
    if ( firstReal < secondReal )
    {
        return -1;
    }
    else if ( firstReal > secondReal )
    {
        return 1;
    }
    else
    {
        return 0;
    }
}