#### knighthawk

##### Registered

I have a project that I need to input a string one number at a time, convert it to a float for calculations, and convert it back to a string for display.

I know that you use the format commands to display the float in a string, but I am unable to get the string to convert to a number.

Also, how do I do this... ("rand" is random number)

int a, b, c;

a = 6;

b = 3;

c = (a*rand) + b;

i know that this is a float calculation, but i only want the result to be an int. Basically I would like to floor the result. Do I have to convert a and b to a float first?