The function myFirstFunction() looks ok. Well done.
However float main() is an error. I'm surprised your compiler accepted it. Usually we want to set the compiler to tell us about such errors.
main() must always return a type int. int main()
Also, it's fair to regard type float as for specialist use (perhaps when you need to store a really huge number of floating-point values). It occupies less space and is less accurate than type double which should be regarded as the default type whenever you need floating-point numbers.
Here's the value 1/3 calculated using types long double, double and float respectively.