Good Morning,
I did the following function in C:
float fooC(double a, float b, int c, double d, float e){ float r = (float)(c*d - a*b);