Hi, i know its probably the easiest thing ever, but im a noobie in c, and in need of some help with fmax function, i just dont really get it.
im trying to compare 3 floats
heres what im trying
float fmaxf (float int1, float int2, float int3)
im not sure if i can use 3 floats to compare, if not will something like this work
float fmaxf (float int1, float int2)
float fmaxf (float int1, float int3)
the thing i dont understand is what kinda return will be for that fmax function, or should i add something after float function line to get the biggest value out of those 2 or 3 values.. i cant really explain.. i guess i just dont understand how fmax works, we never did it in class but we just took a quick look at math library, so i did the same 3 value comparison with if and else but its very long, i want to try with fmax and fmin to make it shorter
thanks in advance