Resolution:
>Floor Function is used as the Greatest Integer Function.
>Formula to write it is as f(x)=⌊x⌋.
> ⌊x⌋ contains value which is the largest integer and is less than or equal to x.
Another way to achieve this is by using formula math.ceil(x)-1
Another function in C to help achieve this:
double testfuc(double x) {
return test(nextafter(x, -1.0/0.0));
}