I've got two floats but they're as strings. how do i get this code to work. I don't know how to convert them so i can compare them. it's read from standard input that's why they're char*. The code below is just an example, i know it's not goin2 work lol. Please tell me how to convert so i can compare, thanx
Code:char* f1 = 3.2; char* f2 = 4.53; if(f1 > f2) { cout << "F1 is bigger" <<endl; }else { cout <<F2 is bigger" <<endl; }