I believe that it has something to do with type promotion rules, but I'm not sure and considering the fact that I'm still new to programming, I cant imagine why this:
#include <stdio.h>
int main() {
    float result;
    result = function(2.4, 4.9);
    printf("Test: %.2f\n", result);
    system("PAUSE");
    return 0;
}
float function(float value1, float value2) {
    float calculation = value1 * value2;
    return calculation;
}
would print out
Test: -858993472.00
I'm typing in float values and I want my calculation to return an other float value as my result, what am I doing wrong?